1 | # Copyright (c) 2008 oc2pus |
---|
2 | # This file and all modifications and additions to the pristine |
---|
3 | # package are under the same license as the package itself. |
---|
4 | # |
---|
5 | # Please submit bugfixes or comments to toni@links2linux.de |
---|
6 | # |
---|
7 | # *** This spec is modified for Vine Linux *** |
---|
8 | |
---|
9 | # norootforbuild |
---|
10 | |
---|
11 | %define _prefix /usr |
---|
12 | # %define _SO_nr 0 |
---|
13 | |
---|
14 | Name: libzen |
---|
15 | Version: 0.4.29 |
---|
16 | Release: 1%{?_dist_release} |
---|
17 | Summary: Shared library for libmediainfo and medianfo-* |
---|
18 | Summary(ja): libmediainfo 及び mediainfo-* 用の共有ライブラリ |
---|
19 | Group: System Environment/Libraries |
---|
20 | License: BSD |
---|
21 | URL: http://zenlib.sourceforge.net/ |
---|
22 | Source: libzen_%{version}.tar.bz2 |
---|
23 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
24 | # BuildRequires: dos2unix |
---|
25 | BuildRequires: nkf |
---|
26 | BuildRequires: doxygen |
---|
27 | ## Need GCC3 |
---|
28 | BuildRequires: gcc-c++ |
---|
29 | |
---|
30 | Packager: babasaki |
---|
31 | |
---|
32 | %description |
---|
33 | Shared library for libmediainfo and medianfo-*. |
---|
34 | |
---|
35 | %description -l ja |
---|
36 | libmediainfo 及び mediainfo-* 用の共有ライブラリです。 |
---|
37 | |
---|
38 | %package -n libzen-devel |
---|
39 | Summary: Include files and mandatory libraries for development |
---|
40 | Summary(ja): libzen の開発用のヘッダとライブラリファイル |
---|
41 | Group: Development/Libraries |
---|
42 | Requires: %{name} = %{version}-%{release} |
---|
43 | |
---|
44 | %description -n libzen-devel |
---|
45 | Include files and mandatory libraries for development. |
---|
46 | |
---|
47 | %description -n libzen-devel -l ja |
---|
48 | libzen の開発用のヘッダとライブラリファイルです。 |
---|
49 | |
---|
50 | %prep |
---|
51 | %setup -q -n ZenLib |
---|
52 | ## dos2unix *.txt Source/Doc/*.html |
---|
53 | nkf --unix --overwrite *.txt Source/Doc/*.html |
---|
54 | |
---|
55 | %__chmod 644 *.txt Source/Doc/*.html |
---|
56 | |
---|
57 | %build |
---|
58 | export CFLAGS="$RPM_OPT_FLAGS" |
---|
59 | export CPPFLAGS="$RPM_OPT_FLAGS" |
---|
60 | export CXXFLAGS="$RPM_OPT_FLAGS" |
---|
61 | |
---|
62 | pushd Source/Doc/ |
---|
63 | doxygen Doxyfile |
---|
64 | popd |
---|
65 | cp Source/Doc/*.html ./ |
---|
66 | |
---|
67 | pushd Project/GNU/Library |
---|
68 | %__chmod +x autogen |
---|
69 | ./autogen |
---|
70 | %configure --enable-shared --disable-static |
---|
71 | |
---|
72 | %__make clean |
---|
73 | %__make %{?jobs:-j%{jobs}} |
---|
74 | popd |
---|
75 | |
---|
76 | %install |
---|
77 | pushd Project/GNU/Library |
---|
78 | %__make install-strip DESTDIR=%{buildroot} |
---|
79 | popd |
---|
80 | |
---|
81 | # Zenlib headers and ZenLib-config |
---|
82 | %__install -dm 755 %{buildroot}%{_includedir}/ZenLib |
---|
83 | %__install -m 644 Source/ZenLib/*.h \ |
---|
84 | %{buildroot}%{_includedir}/ZenLib |
---|
85 | for i in Base64 HTTP_Client Format/Html Format/Http TinyXml; do |
---|
86 | %__install -dm 755 %{buildroot}%{_includedir}/ZenLib/$i |
---|
87 | # %__install -m 644 Source/ZenLib/$i/*.h \ |
---|
88 | # %{buildroot}%{_includedir}/ZenLib/$i |
---|
89 | done |
---|
90 | |
---|
91 | %__sed -i -e 's|Version: |Version: %{version}|g' \ |
---|
92 | Project/GNU/Library/libzen.pc |
---|
93 | %__install -dm 755 %{buildroot}%{_libdir}/pkgconfig |
---|
94 | %__install -m 644 Project/GNU/Library/libzen.pc \ |
---|
95 | %{buildroot}%{_libdir}/pkgconfig |
---|
96 | |
---|
97 | # remove unpackaged files |
---|
98 | rm -f ${RPM_BUILD_ROOT}/%{_libdir}/*.la |
---|
99 | |
---|
100 | |
---|
101 | %clean |
---|
102 | [ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}" |
---|
103 | |
---|
104 | %post -n libzen -p /sbin/ldconfig |
---|
105 | |
---|
106 | %postun -n libzen -p /sbin/ldconfig |
---|
107 | |
---|
108 | %files |
---|
109 | %defattr(-,root,root,-) |
---|
110 | %doc History.txt License.txt ReadMe.txt |
---|
111 | %{_libdir}/libzen.so.* |
---|
112 | |
---|
113 | %files -n libzen-devel |
---|
114 | %defattr(-,root,root,-) |
---|
115 | %doc Documentation.html |
---|
116 | %doc Doc/* |
---|
117 | %{_bindir}/libzen-config |
---|
118 | %dir %{_includedir}/ZenLib |
---|
119 | %{_includedir}/ZenLib/* |
---|
120 | %{_libdir}/libzen.so |
---|
121 | %{_libdir}/pkgconfig/*.pc |
---|
122 | |
---|
123 | %changelog |
---|
124 | * Mon Oct 14 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.29-1 |
---|
125 | - new upstream release |
---|
126 | |
---|
127 | * Sat Sep 15 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.28-1 |
---|
128 | - new upstream release |
---|
129 | |
---|
130 | * Sun May 13 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.26-1 |
---|
131 | - new upstream release |
---|
132 | |
---|
133 | * Sun Jan 15 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.23-1 |
---|
134 | - new upstream release |
---|
135 | |
---|
136 | * Tue Sep 27 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.22-1 |
---|
137 | - new upstream release |
---|
138 | |
---|
139 | * Fri Jul 15 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.20-1 |
---|
140 | - new upstream release |
---|
141 | |
---|
142 | * Sat Dec 25 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.17-1 |
---|
143 | - new upstream release |
---|
144 | |
---|
145 | * Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 0.4.15-4 |
---|
146 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
147 | |
---|
148 | * Sat Aug 28 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.15-3 |
---|
149 | - fixed Group to System Environment/Libraries |
---|
150 | |
---|
151 | * Sat Jul 24 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.15-2 |
---|
152 | - fix %install (add install directory) |
---|
153 | |
---|
154 | * Tue Jun 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.15-1 |
---|
155 | - new upstream release |
---|
156 | |
---|
157 | * Tue Jul 28 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.3-1 |
---|
158 | - new upstream release |
---|
159 | - change spec file name to libzen-vl.spec |
---|
160 | - add japanese summary and description |
---|
161 | - change group for -devel sub package to Development/Libraries |
---|
162 | - add configure option --disable-static |
---|
163 | - remove unpackaged file (.la) |
---|
164 | - add Packager tag |
---|
165 | |
---|
166 | * Thu Jan 01 2009 Jerome Martinez <zen@mediaarea.net> - 0.3.6-0 |
---|
167 | - See History.txt for more info and real dates |
---|
168 | - Previous packages made by Toni Graffy <toni@links2linux.de> |
---|