~ubuntu-branches/ubuntu/vivid/fribidi/vivid

« back to all changes in this revision

Viewing changes to fribidi.spec

  • Committer: Bazaar Package Importer
  • Author(s): Lior Kaplan
  • Date: 2006-09-16 10:37:10 UTC
  • mfrom: (3.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20060916103710-1ktngzyx9azkujhl
Tags: 0.10.7-4
* Fix manual page name section (Closes: #368632)
* debian/control: Upgrade standards version to 3.7.2 (no changes needed).
* debian/copyright: Update Dov Grobgeld's contact address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# This spec file creates three packages:
 
2
#
 
3
#       Everything:
 
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.
 
12
 
 
13
%define name fribidi
 
14
%define ver 0.10.7
 
15
%define major 0
 
16
%define minor 10
 
17
%define micro 7
 
18
%define apiver 2
 
19
%define rel 1
 
20
%define prefix %{_prefix}
 
21
 
 
22
Name: %{name}
 
23
Version: %{ver}
 
24
Release: %{rel}
 
25
Serial: %{apiver}
 
26
License: LGPL
 
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
 
32
%description
 
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.
 
36
 
 
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.
 
46
 
 
47
Install %{name}%{major} if you want to run or develop programs that use %{name}.
 
48
 
 
49
 
 
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.
 
56
 
 
57
Install lib%{name}%{major} if you want to run programs which use %{name}.
 
58
 
 
59
 
 
60
%package -n lib%{name}%{major}-devel
 
61
Summary: Library implementing the Unicode Bidirectional Algorithm
 
62
Group: Development/C
 
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.
 
68
 
 
69
Install lib%{name}%{major}-devel if you want to develop programs which will use
 
70
%{name}.
 
71
 
 
72
 
 
73
%prep
 
74
%setup
 
75
 
 
76
%build
 
77
if [ ! -x ./configure ];then 
 
78
./bootstrap
 
79
fi
 
80
 
 
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}
 
89
 
 
90
make OPT_CFLAGS="$RPM_OPT_FLAGS"
 
91
 
 
92
%install
 
93
rm -rf "$RPM_BUILD_ROOT"
 
94
mkdir -p "$RPM_BUILD_ROOT%{prefix}"
 
95
make DESTDIR="$RPM_BUILD_ROOT" install
 
96
 
 
97
 
 
98
%clean
 
99
rm -rf "$RPM_BUILD_ROOT"
 
100
 
 
101
%post -n %{name}%{major} -p /sbin/ldconfig
 
102
%postun -n %{name}%{major} -p /sbin/ldconfig
 
103
 
 
104
%post -n lib%{name}%{major} -p /sbin/ldconfig
 
105
%postun -n lib%{name}%{major} -p /sbin/ldconfig
 
106
 
 
107
%files -n %{name}%{major}
 
108
%defattr(-,root,root)
 
109
%doc README AUTHORS COPYING ChangeLog TODO THANKS NEWS
 
110
%{_bindir}/%{name}
 
111
%{_bindir}/%{name}-config
 
112
%{_libdir}/*.so.*
 
113
%{_libdir}/pkgconfig/%{name}.pc
 
114
%{_libdir}/*.a
 
115
%{_libdir}/*.la
 
116
%{_libdir}/*.so
 
117
%{_includedir}/*
 
118
 
 
119
%files -n lib%{name}%{major}
 
120
%defattr(-, root, root)
 
121
%doc README AUTHORS COPYING ChangeLog TODO THANKS NEWS
 
122
%{_bindir}/%{name}
 
123
%{_bindir}/%{name}-config
 
124
%{_libdir}/*.so.*
 
125
 
 
126
%files -n lib%{name}%{major}-devel
 
127
%defattr(-, root, root)
 
128
%{_libdir}/*.a
 
129
%{_libdir}/*.la
 
130
%{_libdir}/*.so
 
131
%{_includedir}/*
 
132
%{_libdir}/pkgconfig/%{name}.pc
 
133
 
 
134
 
 
135
%changelog
 
136
 
 
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.
 
140
 
 
141
* Sat Jan 26 2002  Behdad Esfahbod <behdad@bamdad.org>
 
142
- CFLAGS changed to OPT_CFLAGS.
 
143
 
 
144
* Wed Jan  9 2002  Behdad Esfahbod <behdad@bamdad.org>
 
145
- First spec released.