1
# This spec file creates three packages:
4
# (this is equivalent to two others together)
5
# fribidiN-version-release-arch.rpm
6
# Runtime material: Shared library and command line tool
7
# libfribidiN-version-release-arch.rpm
8
# Development material: Static library and header files
9
# (requires libfribidiN)
10
# libfribidiN-devel-version-release-arch.rpm
11
# Where N is the major version number.
20
%define prefix %{_prefix}
27
Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{ver}.tar.gz
28
URL: http://%{name}.sourceforge.net/
29
BuildRoot: %{_tmppath}/%{name}
30
Summary: Library implementing the Unicode Bidirectional Algorithm
31
Group: System/Libraries
33
A library to handle bidirectional scripts (eg. hebrew, arabic), so that
34
the display is done in the proper way; while the text data itself is
35
always written in logical order.
37
%package -n %{name}%{major}
38
Summary: Library implementing the Unicode Bidirectional Algorithm
39
Group: System/Libraries
40
Provides: lib%{name}%{major}
41
Provides: lib%{name}%{major}-devel
42
%description -n %{name}%{major}
43
A library to handle bidirectional scripts (eg. hebrew, arabic), so that
44
the display is done in the proper way; while the text data itself is
45
always written in logical order.
47
Install %{name}%{major} if you want to run or develop programs that use %{name}.
50
%package -n lib%{name}%{major}
51
Summary: Library implementing the Unicode Bidirectional Algorithm
52
Group: System/Libraries
53
Conflicts: %{name}%{major}
54
%description -n lib%{name}%{major}
55
The lib%{name}%{major} package includes the shared libraries for the %{name}%{major} package.
57
Install lib%{name}%{major} if you want to run programs which use %{name}.
60
%package -n lib%{name}%{major}-devel
61
Summary: Library implementing the Unicode Bidirectional Algorithm
63
Requires: lib%{name}%{major} = %{ver}
64
Conflicts: %{name}%{major}
65
%description -n lib%{name}%{major}-devel
66
The lib%{name}%{major}-devel package includes the static libraries and header files
67
for the %{name}%{major} package.
69
Install lib%{name}%{major}-devel if you want to develop programs which will use
77
if [ ! -x ./configure ];then
81
./configure %{_target_platform} \
82
--prefix=%{_prefix} --exec-prefix=%{_exec_prefix} \
83
--bindir=%{_bindir} --sbindir=%{_sbindir} \
84
--sysconfdir=%{_sysconfdir} --datadir=%{_datadir} \
85
--includedir=%{_includedir} \
86
--libdir=%{_libdir} --libexecdir=%{_libexecdir} \
87
--mandir=%{_mandir} --infodir=%{_infodir} \
88
--localstatedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir}
90
make OPT_CFLAGS="$RPM_OPT_FLAGS"
93
rm -rf "$RPM_BUILD_ROOT"
94
mkdir -p "$RPM_BUILD_ROOT%{prefix}"
95
make DESTDIR="$RPM_BUILD_ROOT" install
99
rm -rf "$RPM_BUILD_ROOT"
101
%post -n %{name}%{major} -p /sbin/ldconfig
102
%postun -n %{name}%{major} -p /sbin/ldconfig
104
%post -n lib%{name}%{major} -p /sbin/ldconfig
105
%postun -n lib%{name}%{major} -p /sbin/ldconfig
107
%files -n %{name}%{major}
108
%defattr(-,root,root)
109
%doc README AUTHORS COPYING ChangeLog TODO THANKS NEWS
111
%{_bindir}/%{name}-config
113
%{_libdir}/pkgconfig/%{name}.pc
119
%files -n lib%{name}%{major}
120
%defattr(-, root, root)
121
%doc README AUTHORS COPYING ChangeLog TODO THANKS NEWS
123
%{_bindir}/%{name}-config
126
%files -n lib%{name}%{major}-devel
127
%defattr(-, root, root)
132
%{_libdir}/pkgconfig/%{name}.pc
137
* Tue Mar 12 2002 Behdad Esfahbod <behdad@bamdad.org>
138
- Use License instead of Copyright
139
- Moved pkgconfig to devel package instead of lib package.
141
* Sat Jan 26 2002 Behdad Esfahbod <behdad@bamdad.org>
142
- CFLAGS changed to OPT_CFLAGS.
144
* Wed Jan 9 2002 Behdad Esfahbod <behdad@bamdad.org>
145
- First spec released.