Author: prism                        Date: Tue Apr 25 00:04:27 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added examples subpackage

---- Files affected:
SPECS:
   antlr.spec (1.32 -> 1.33) 

---- Diffs:

================================================================
Index: SPECS/antlr.spec
diff -u SPECS/antlr.spec:1.32 SPECS/antlr.spec:1.33
--- SPECS/antlr.spec:1.32       Wed Jan 25 02:05:06 2006
+++ SPECS/antlr.spec    Tue Apr 25 02:04:22 2006
@@ -79,6 +79,18 @@
 %description -n python-antlr -l pl
 Moduły języka Python dla biblioteki ANTLR.
 
+%package examples
+Summary:       Examples of ANTLR usage
+Summary(pl):   Przykładowe programy używające ANTLR
+Group:         Development
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+
+%description examples
+Examples of ANTLR usage.
+
+%description examples -l pl
+Przykładowe programy używające ANTLR.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -97,7 +109,7 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d 
$RPM_BUILD_ROOT{%{_javadir},%{py_sitescriptdir}/%{name},%{_prefix}/lib/mono/%{name}}
+install -d 
$RPM_BUILD_ROOT{%{_javadir},%{py_sitescriptdir}/%{name},%{_prefix}/lib/mono/%{name},%{_examplesdir}/%{name}}
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
@@ -106,6 +118,9 @@
        $RPM_BUILD_ROOT%{_javadir}
 install $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/*.py \
        $RPM_BUILD_ROOT%{py_sitescriptdir}/%{name}
+cp -Rf examples/{cpp,csharp,java,python} \
+       $RPM_BUILD_ROOT%{_examplesdir}/%{name}
+find $RPM_BUILD_ROOT%{_examplesdir}/%{name} -name Makefile -exec rm -f {} \;
 
 %{?with_dotnet:install lib/*.dll $RPM_BUILD_ROOT%{_prefix}/lib/mono/%{name}}
 
@@ -138,12 +153,19 @@
 %defattr(644,root,root,755)
 %{py_sitescriptdir}/%{name}
 
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}
+
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <[EMAIL PROTECTED]>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.33  2006/04/25 00:04:22  prism
+- added examples subpackage
+
 Revision 1.32  2006/01/25 01:05:06  adgor
 - Fixed dotnet bcond
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/antlr.spec?r1=1.32&r2=1.33&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to