[packages/tidyp] - pl - added -static

qboosh qboosh at pld-linux.org
Mon Jul 9 19:14:35 CEST 2012


commit 62d41f1e479e8660e1adc32bd414ea673ce2ffc9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Jul 9 19:12:21 2012 +0200

    - pl
    - added -static

 tidyp.spec | 47 +++++++++++++++++++++++++++++++++++++++++------
 1 file changed, 41 insertions(+), 6 deletions(-)
---
diff --git a/tidyp.spec b/tidyp.spec
index 105e943..ef20448 100644
--- a/tidyp.spec
+++ b/tidyp.spec
@@ -1,12 +1,17 @@
+#
+# Conditional build:
+%bcond_with	tests	# perform "make check" (broken, some file is missing)
+#
 Summary:	Clean up and pretty-print HTML/XHTML/XML
+Summary(pl.UTF-8):	Czyszczenie i ładne wypisywanie HTML-a/XHTML-a/XML-a
 Name:		tidyp
 Version:	1.04
 Release:	1
 License:	W3C
 Group:		Applications/Text
-URL:		http://www.tidyp.com/
 Source0:	http://github.com/downloads/petdance/tidyp/%{name}-%{version}.tar.gz
 # Source0-md5:	00a6b804f6625221391d010ca37178e1
+URL:		http://www.tidyp.com/
 Requires:	libtidyp = %{version}-%{release}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -15,21 +20,46 @@ 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.
 
+%description -l pl.UTF-8
+tidyp to odgałęzienie projektu tidy z SourceForge. Nazwa biblioteki to
+"tidyp", polecenie także nazywa się "tidyp", ale całe wewnętrzne API
+pozostaje takie samo.
+
 %package -n libtidyp
-Summary:	Shared libraries for tidyp
+Summary:	Shared library for tidyp
+Summary(pl.UTF-8):	Biblioteka współdzielona tidyp
 Group:		Libraries
 
 %description -n libtidyp
-Shared libraries for tidyp.
+Shared library for tidyp.
+
+%description -n libtidyp -l pl.UTF-8
+Biblioteka współdzielona tidyp.
 
 %package -n libtidyp-devel
 Summary:	Development files for libtidyp
+Summary(pl.UTF-8):	Pliki programistyczne biblioteki libtidyp
 Group:		Development/Libraries
 Requires:	libtidyp = %{version}-%{release}
 
 %description -n libtidyp-devel
 Development files for libtidyp.
 
+%description -n libtidyp-devel -l pl.UTF-8
+Pliki programistyczne biblioteki libtidyp.
+
+%package -n libtidyp-static
+Summary:	Static libtidyp library
+Summary(pl.UTF-8):	Statyczna biblioteka libtidyp
+Group:		Development/Libraries
+Requires:	libtidyp = %{version}-%{release}
+
+%description -n libtidyp-static
+Static libtidyp library.
+
+%description -n libtidyp-static -l pl.UTF-8
+Statyczna biblioteka libtidyp.
+
 %prep
 %setup -q
 
@@ -43,7 +73,6 @@ touch configure
 
 %build
 %configure \
-	--disable-static \
 	--disable-dependency-tracking
 %{__make}
 
@@ -56,6 +85,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} check
 %endif
 
+# no external dependencies
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libtidyp.la
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -74,6 +106,9 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -n libtidyp-devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libtidyp.so
 %{_includedir}/tidyp
-%{_libdir}/libtidyp.so
-%exclude %{_libdir}/libtidyp.la
+
+%files -n libtidyp-static
+%defattr(644,root,root,755)
+%{_libdir}/libtidyp.a


More information about the pld-cvs-commit mailing list