packages: tidyp/tidyp-cflags.patch (NEW), tidyp/tidyp.spec (NEW) - new, bas...

glen glen at pld-linux.org
Sun Feb 13 12:50:28 CET 2011


Author: glen                         Date: Sun Feb 13 11:50:28 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, based on fedora package

---- Files affected:
packages/tidyp:
   tidyp-cflags.patch (NONE -> 1.1)  (NEW), tidyp.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/tidyp/tidyp-cflags.patch
diff -u /dev/null packages/tidyp/tidyp-cflags.patch:1.1
--- /dev/null	Sun Feb 13 12:50:28 2011
+++ packages/tidyp/tidyp-cflags.patch	Sun Feb 13 12:50:23 2011
@@ -0,0 +1,22 @@
+--- tidyp-1.00/configure.ac	2010-04-25 06:25:59.000000000 +0100
++++ tidyp-1.00/configure.ac	2010-04-26 11:19:26.379099622 +0100
+@@ -62,7 +62,7 @@
+ if test $debug_build = yes; then
+ 	CFLAGS="$save_cflags -g"
+ else
+-	CFLAGS="-O2 $save_cflags"
++	CFLAGS="$save_cflags"
+ fi
+ #
+ # =============================================
+--- tidyp-0.99/configure	2010-02-22 06:25:50.000000000 +0000
++++ tidyp-0.99/configure	2010-03-01 14:39:35.461711475 +0000
+@@ -3110,7 +3110,7 @@
+ if test $debug_build = yes; then
+ 	CFLAGS="$save_cflags -g"
+ else
+-	CFLAGS="-O2 $save_cflags"
++	CFLAGS="$save_cflags"
+ fi
+ #
+ # =============================================

================================================================
Index: packages/tidyp/tidyp.spec
diff -u /dev/null packages/tidyp/tidyp.spec:1.1
--- /dev/null	Sun Feb 13 12:50:28 2011
+++ packages/tidyp/tidyp.spec	Sun Feb 13 12:50:23 2011
@@ -0,0 +1,90 @@
+# $Revision$, $Date$
+Summary:	Clean up and pretty-print HTML/XHTML/XML
+Name:		tidyp
+Version:	1.02
+Release:	1
+License:	W3C
+Group:		Applications/Text
+URL:		http://www.tidyp.com/
+Source0:	http://github.com/downloads/petdance/tidyp/%{name}-%{version}.tar.gz
+Patch1:		%{name}-cflags.patch
+Requires:	libtidyp = %{version}-%{release}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+tidyp is a fork of tidy on SourceForge. The library name is "tidyp",
+and the command-line tool is also "tidyp" but all internal API stays
+the same.
+
+%package -n libtidyp
+Summary:	Shared libraries for tidyp
+Group:		Libraries
+
+%description -n libtidyp
+Shared libraries for tidyp.
+
+%package -n libtidyp-devel
+Summary:	Development files for libtidyp
+Group:		Development/Libraries
+Requires:	libtidyp = %{version}-%{release}
+
+%description -n libtidyp-devel
+Development files for libtidyp.
+
+%prep
+%setup -q
+%patch1 -p1
+
+# Fix permissions for debuginfo
+chmod -x src/{mappedio.*,version.h}
+
+# Fix timestamp order to avoid trying to re-run autotools
+touch aclocal.m4
+find . -name Makefile.in -exec touch {} \;
+touch configure
+
+%build
+%configure \
+	--disable-static \
+	--disable-dependency-tracking
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%if %{with tests}
+%{__make} check
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-n libtidyp -p /sbin/ldconfig
+%postun	-n libtidyp -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README
+%attr(755,root,root) %{_bindir}/tidyp
+
+%files -n libtidyp
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libtidyp-%{version}.so.*.*.*
+%ghost %{_libdir}/libtidyp-%{version}.so.0
+
+%files -n libtidyp-devel
+%defattr(644,root,root,755)
+%{_includedir}/tidyp
+%{_libdir}/libtidyp.so
+%exclude %{_libdir}/libtidyp.la
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/02/13 11:50:23  glen
+- new, based on fedora package
================================================================


More information about the pld-cvs-commit mailing list