summaryrefslogtreecommitdiff
path: root/fribidi.spec.in
blob: 86c54be9abfbc39ecada076d78fde4f9391cb859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
# This spec file creates three packages:
#
#	Everything:
#		(this is equivalent to two others together)
#			fribidiN-version-release-arch.rpm
#	Runtime material: Shared library and command line tool
#			libfribidiN-version-release-arch.rpm
#	Development material: Static library and header files
#		(requires libfribidi)
#			libfribidi-devel-version-release-arch.rpm
#	Where N is the major version number.

%define name @PACKAGE@
%define ver @FRIBIDI_VERSION@
%define major @FRIBIDI_MAJOR_VERSION@
%define minor @FRIBIDI_MINOR_VERSION@
%define micro @FRIBIDI_MICRO_VERSION@
%define apiver @FRIBIDI_INTERFACE_VERSION@
%define rel @FRIBIDI_SPEC_RELEASE@
%define prefix %{_prefix}

Name: %{name}
Version: %{ver}
Release: %{rel}
Serial: %{apiver}
Copyright: LGPL
Source: http://prdownloads.sourceforge.net/fribidi/%{name}-%{ver}.tar.gz
URL: http://fribidi.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}
Summary: Library implementing the Unicode Bidirectional Algorithm
Group: System/Libraries
%description
A library to handle bidirectional scripts (eg. hebrew, arabic), so that
the display is done in the proper way; while the text data itself is
always written in logical order.

%package -n %{name}%{major}
Summary: Library implementing the Unicode Bidirectional Algorithm
Group: System/Libraries
Provides: lib%{name}%{major}
Provides: lib%{name}%{major}-devel
%description -n %{name}%{major}
A library to handle bidirectional scripts (eg. hebrew, arabic), so that
the display is done in the proper way; while the text data itself is
always written in logical order.

Install %{name}%{major} if you want to run or develop programs that use %{name}.


%package -n lib%{name}%{major}
Summary: Library implementing the Unicode Bidirectional Algorithm
Group: System/Libraries
Conflicts: %{name}%{major}
%description -n lib%{name}%{major}
The lib%{name}%{major} package includes the shared libraries for the %{name}%{major} package.

Install lib%{name}%{major} if you want to run programs which use %{name}.


%package -n lib%{name}%{major}-devel
Summary: Library implementing the Unicode Bidirectional Algorithm
Group: Development/C
Requires: lib%{name}%{major} = %{ver}
Conflicts: %{name}%{major}
%description -n lib%{name}%{major}-devel
The lib%{name}%{major}-devel package includes the static libraries and header files
for the %{name}%{major} package.

Install lib%{name}%{major}-devel if you want to develop programs which will use
%{name}.


%prep
%setup

%build
if [ ! -x ./configure ];then 
./bootstrap
fi

./configure %{_target_platform}                                         \
	--prefix=%{_prefix}             --exec-prefix=%{_exec_prefix}   \
	--bindir=%{_bindir}             --sbindir=%{_sbindir}           \
	--sysconfdir=%{_sysconfdir}     --datadir=%{_datadir}           \
	--includedir=%{_includedir}                                     \
	--libdir=%{_libdir}             --libexecdir=%{_libexecdir}     \
	--mandir=%{_mandir}             --infodir=%{_infodir}           \
	--localstatedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir}
 
make CFLAGS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{prefix}
make DESTDIR="$RPM_BUILD_ROOT" install


%clean
rm -rf $RPM_BUILD_ROOT

%post -n %{name}%{major} -p /sbin/ldconfig
%postun -n %{name}%{major} -p /sbin/ldconfig

%post -n lib%{name}%{major} -p /sbin/ldconfig
%postun -n lib%{name}%{major} -p /sbin/ldconfig

%files -n %{name}%{major}
%defattr(-,root,root)
%doc README AUTHORS COPYING ChangeLog TODO THANKS NEWS
%{_bindir}/%{name}
%{_bindir}/%{name}-config
%{_libdir}/*.so.*
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%{_includedir}/*

%files -n lib%{name}%{major}
%defattr(-, root, root)
%doc README AUTHORS COPYING ChangeLog TODO THANKS NEWS
%{_bindir}/%{name}
%{_bindir}/%{name}-config
%{_libdir}/*.so.*
%{_libdir}/pkgconfig/%{name}.pc

%files -n lib%{name}%{major}-devel
%defattr(-, root, root)
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%{_includedir}/*


%changelog

* Wed Jan  9 2002  Behdad Esfahbod <behdad@bamdad.org>
- First spec released.