SPECS: fox.spec - added examples subpackage - rel 3
witekfl
witekfl at pld-linux.org
Thu May 18 11:21:01 CEST 2006
Author: witekfl Date: Thu May 18 09:21:01 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added examples subpackage
- rel 3
---- Files affected:
SPECS:
fox.spec (1.89 -> 1.90)
---- Diffs:
================================================================
Index: SPECS/fox.spec
diff -u SPECS/fox.spec:1.89 SPECS/fox.spec:1.90
--- SPECS/fox.spec:1.89 Wed May 17 22:57:30 2006
+++ SPECS/fox.spec Thu May 18 11:20:56 2006
@@ -7,7 +7,7 @@
Summary(pl): FOX - toolkit graficzny w C++
Name: fox
Version: 1.6.4
-Release: 2
+Release: 3
License: LGPL
Group: X11/Libraries
Source0: ftp://ftp.fox-toolkit.com/pub/%{name}-%{version}.tar.gz
@@ -111,6 +111,18 @@
%description doc -l pl
Dokumentacja programisty do biblioteki FOX.
+%package examples
+Summary: FOX - example programs
+Summary(pl): FOX - programy przykładowe
+Group: X11/Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description examples
+FOX - example programs.
+
+%description examples -l pl
+FOX - przykładowe programy.
+
%prep
%setup -q
%patch0 -p1
@@ -133,7 +145,7 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_datadir}
+install -d $RPM_BUILD_ROOT{%{_datadir},%{_examplesdir}/%{name}-%{version}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
@@ -142,6 +154,9 @@
rm -f doc/Makefile* doc/*/Makefile*
+%{__make} -C tests clean
+cp -r tests/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -181,12 +196,20 @@
%defattr(644,root,root,755)
%doc doc/*
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
+
%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.90 2006/05/18 09:20:56 witekfl
+- added examples subpackage
+- rel 3
+
Revision 1.89 2006/05/17 20:57:30 witekfl
- html docs generated by doxygen
- rel 2
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/fox.spec?r1=1.89&r2=1.90&f=u
More information about the pld-cvs-commit
mailing list