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.15 |
---|
16 | Release: 4%{?_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 | %dir %{_includedir}/ZenLib |
---|
118 | %{_includedir}/ZenLib/* |
---|
119 | %{_libdir}/libzen.so |
---|
120 | %{_libdir}/pkgconfig/*.pc |
---|
121 | |
---|
122 | %changelog |
---|
123 | * Mon Sep 27 2010 Shu KONNO <owa@bg.wakwak.com> 0.4.15-4 |
---|
124 | - rebuilt with rpm-4.8.1 for pkg-config |
---|
125 | |
---|
126 | * Sat Aug 28 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4.15-3 |
---|
127 | - fixed Group to System Environment/Libraries |
---|
128 | |
---|
129 | * Sat Jul 24 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.15-2 |
---|
130 | - fix %install (add install directory) |
---|
131 | |
---|
132 | * Tue Jun 15 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.4.15-1 |
---|
133 | - new upstream release |
---|
134 | |
---|
135 | * Tue Jul 28 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4.3-1 |
---|
136 | - new upstream release |
---|
137 | - change spec file name to libzen-vl.spec |
---|
138 | - add japanese summary and description |
---|
139 | - change group for -devel sub package to Development/Libraries |
---|
140 | - add configure option --disable-static |
---|
141 | - remove unpackaged file (.la) |
---|
142 | - add Packager tag |
---|
143 | |
---|
144 | * Tue Jan 01 2009 Jerome Martinez <zen@mediaarea.net> - 0.3.6-0 |
---|
145 | - See History.txt for more info and real dates |
---|
146 | - Previous packages made by Toni Graffy <toni@links2linux.de> |
---|