packages: reglookup/reglookup.spec - updated to 1.0.0 - switched to scons -...

adamg adamg at pld-linux.org
Mon Jun 20 18:48:12 CEST 2011


Author: adamg                        Date: Mon Jun 20 16:48:12 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- updated to 1.0.0
- switched to scons
- -DESTDIR and -parallel-make patches dropped (obsolete),
- -paths patch (for scons),
- -libs, -devel, -static and python-pyregfi packages introduced

---- Files affected:
packages/reglookup:
   reglookup.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/reglookup/reglookup.spec
diff -u packages/reglookup/reglookup.spec:1.3 packages/reglookup/reglookup.spec:1.4
--- packages/reglookup/reglookup.spec:1.3	Tue Jun 23 00:36:45 2009
+++ packages/reglookup/reglookup.spec	Mon Jun 20 18:48:07 2011
@@ -2,15 +2,16 @@
 Summary:	small utility for querying NT/2K/XP/2K3/Vista registries
 Summary(pl.UTF-8):	proste narzędzie do odpytywania rejestrów NT/2K/XP/2K3/Vista
 Name:		reglookup
-Version:	0.11.0
+Version:	1.0.0
 Release:	1
 License:	GPL v3
 Group:		Applications
-Source0:	http://projects.sentinelchicken.org/data/downloads/%{name}-%{version}.tar.gz
-# Source0-md5:	6dfb99a2a848e4eeb28d3ecefb5b08c9
+Source0:	http://projects.sentinelchicken.org/data/downloads/%{name}-src-%{version}.tar.gz
+# Source0-md5:	1fb1eea7435d368a91ade8c4016b5be6
+Patch0:		%{name}-paths.patch
 URL:		http://projects.sentinelchicken.org/reglookup/
-Patch0:		%{name}-DESTDIR.patch
-Patch1:		%{name}-parallel-make.patch
+BuildRequires:	rpmbuild(macros) >= 1.385
+BuildRequires:	scons
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -37,28 +38,76 @@
 ustandaryzowanym formacie. Możliwe jest także filtrowanie wyników na
 podstawie ścieżek rejestru czy typów danych.
 
+%package libs
+Summary:	reglookup shared library
+Summary(pl.UTF-8):	współdzielona biblioteka reglookup
+Group:		Libraries
+
+%description libs
+reglookup shared library.
+
+%description libs -l pl.UTF-8
+współdzielona biblioteka reglookup.
+
+%package devel
+Summary:	Header files for reglookup library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki reglookup
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for reglookup library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki reglookup.
+
+%package static
+Summary:	Static reglookup library
+Summary(pl.UTF-8):	Statyczna biblioteka reglookup
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static reglookup library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka reglookup.
+
+%package -n python-pyregfi
+Summary:	Python bindings for regfi library
+Summary(pl.UTF-8):	Dowiązania pythona do blblioteki regfi
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description -n python-pyregfi
+Python bindings for regfi library.
+
+%description -n python-pyregfi -l pl.UTF-8
+Dowiązania pythona do biblioteki regfi.
+
 %prep
-%setup -q
+%setup -q -n %{name}-src-%{version}
 %patch0 -p1
-%patch1 -p1
 
 %build
-%{__make} \
-	CC="%{__cc}" \
-	OPTS="%{rpmcflags}" \
-	INC="-I%{_includedir} -I../include" \
-	LIB="-L%{_libdir} -lm"
+%scons
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
-	PREFIX=%{_prefix} \
-	MAN_PREFIX="%{_mandir}" \
-	DESTDIR=$RPM_BUILD_ROOT
+DESTDIR=$RPM_BUILD_ROOT \
+PREFIX="%{_prefix}" \
+BINDIR="%{_bindir}" \
+LIBDIR="%{_libdir}" \
+MANDIR="%{_mandir}" \
+INCLUDEDIR="%{_includedir}" \
+%scons install
+
+%{__python} pyregfi-distutils.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
 
-rm $RPM_BUILD_ROOT%{_mandir}/man1/\*
-mv $RPM_BUILD_ROOT%{_docdir}/%{name}/man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1
+%py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -68,12 +117,37 @@
 %attr(755,root,root) %{_bindir}/*
 %{_mandir}/man1/reglookup*.1*
 
+%files libs
+%defattr(644,root,root,755)
+%{_libdir}/*.so
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/regfi
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
+
+%files -n python-pyregfi
+%defattr(644,root,root,755)
+%dir %{py_sitescriptdir}/pyregfi
+%{py_sitescriptdir}/pyregfi/*.py[co]
+%{py_sitescriptdir}/*.egg-info
+
 %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.4  2011/06/20 16:48:07  adamg
+- updated to 1.0.0
+- switched to scons
+- -DESTDIR and -parallel-make patches dropped (obsolete),
+- -paths patch (for scons),
+- -libs, -devel, -static and python-pyregfi packages introduced
+
 Revision 1.3  2009/06/22 22:36:45  adamg
 - updated to 0.11.0
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/reglookup/reglookup.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list