/[packages]/cauldron/libserializer/current/SPECS/libserializer.spec
ViewVC logotype

Contents of /cauldron/libserializer/current/SPECS/libserializer.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 35764 - (show annotations) (download)
Sun Jan 23 23:46:10 2011 UTC (13 years, 3 months ago) by dmorgan
File size: 2305 byte(s)
imported package libserializer
1 # Use rpmbuild --without gcj to disable native bits
2 %define with_gcj %{!?_without_gcj:1}%{?_without_gcj:0}
3
4 Name: libserializer
5 Version: 1.1.2
6 Release: 2%{?dist}
7 Summary: JFreeReport General Serialization Framework
8 License: LGPLv2+
9 Group: System Environment/Libraries
10 Source: http://downloads.sourceforge.net/jfreereport/libserializer-%{version}.zip
11 URL: http://reporting.pentaho.org
12 BuildRequires: ant, ant-contrib, ant-nodeps, java-devel, jpackage-utils, libbase >= 1.1.2
13 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14 Requires: java, jpackage-utils, libbase >= 1.1.2
15 %if %{with_gcj}
16 BuildRequires: java-gcj-compat-devel >= 1.0.31
17 Requires(post): java-gcj-compat >= 1.0.31
18 Requires(postun): java-gcj-compat >= 1.0.31
19 %else
20 BuildArch: noarch
21 %endif
22 Patch0: libserializer-1.1.2.build.patch
23
24 %description
25 Libserializer contains a general serialization framework that simplifies the
26 task of writing custom java serialization handlers.
27
28 %package javadoc
29 Summary: Javadoc for %{name}
30 Group: Development/Documentation
31 Requires: %{name} = %{version}-%{release}
32 Requires: jpackage-utils
33 %if %{with_gcj}
34 BuildArch: noarch
35 %endif
36
37 %description javadoc
38 Javadoc for %{name}.
39
40 %prep
41 %setup -q -c
42 %patch0 -p1 -b .build
43 find . -name "*.jar" -exec rm -f {} \;
44 mkdir -p lib
45 build-jar-repository -s -p lib libbase commons-logging-api
46 cd lib
47 ln -s %{_javadir}/ant ant-contrib
48
49 %build
50 ant jar javadoc
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54
55 mkdir -p $RPM_BUILD_ROOT%{_javadir}
56 cp -p dist/libserializer-%{version}.jar $RPM_BUILD_ROOT%{_javadir}
57 pushd $RPM_BUILD_ROOT%{_javadir}
58 ln -s %{name}-%{version}.jar %{name}.jar
59 popd
60
61 mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
62 cp -rp bin/javadoc/docs/api $RPM_BUILD_ROOT%{_javadocdir}/%{name}
63 %if %{with_gcj}
64 %{_bindir}/aot-compile-rpm
65 %endif
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %post
71 %if %{with_gcj}
72 if [ -x %{_bindir}/rebuild-gcj-db ]
73 then
74 %{_bindir}/rebuild-gcj-db
75 fi
76 %endif
77
78 %postun
79 %if %{with_gcj}
80 if [ -x %{_bindir}/rebuild-gcj-db ]
81 then
82 %{_bindir}/rebuild-gcj-db
83 fi
84 %endif
85
86 %files
87 %defattr(0644,root,root,0755)
88 %doc ChangeLog.txt licence-LGPL.txt README.txt
89 %{_javadir}/%{name}-%{version}.jar
90 %{_javadir}/%{name}.jar
91 %if %{with_gcj}
92 %attr(-,root,root) %{_libdir}/gcj/%{name}
93 %endif
94
95 %files javadoc
96 %defattr(0644,root,root,0755)
97 %{_javadocdir}/%{name}
98

  ViewVC Help
Powered by ViewVC 1.1.30