1 | %define name libupnp |
---|
2 | %define version 1.6.19 |
---|
3 | %define release 1%{?_dist_release} |
---|
4 | |
---|
5 | %define docdeveldir %{_docdir}/%{name}-devel-%{version} |
---|
6 | %define docdir %{_docdir}/%{name}-%{version} |
---|
7 | |
---|
8 | Summary: Universal Plug and Play (UPnP) SDK |
---|
9 | Summary(ja): ユニバーサルプラグアンドプレイ開発キット |
---|
10 | Name: %{name} |
---|
11 | Version: %{version} |
---|
12 | Release: %{release} |
---|
13 | Source0: %{name}-%{version}.tar.bz2 |
---|
14 | Patch0: makefile.patch |
---|
15 | License: BSD |
---|
16 | Group: System Environment/Libraries |
---|
17 | URL: http://pupnp.sourceforge.net/ |
---|
18 | |
---|
19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
20 | |
---|
21 | %description |
---|
22 | The Universal Plug and Play (UPnP) SDK for Linux provides |
---|
23 | support for building UPnP-compliant control points, devices, |
---|
24 | and bridges on Linux. |
---|
25 | |
---|
26 | %package devel |
---|
27 | Summary: Header files, libraries and development documentation for %{name}. |
---|
28 | Group: Development/Libraries |
---|
29 | Requires: %{name} = %{version}-%{release} |
---|
30 | |
---|
31 | %description devel |
---|
32 | This package contains the header files, static libraries and development |
---|
33 | documentation for %{name}. If you like to develop programs using %{name}, |
---|
34 | you will need to install %{name}-devel. |
---|
35 | |
---|
36 | %prep |
---|
37 | %setup -q |
---|
38 | %patch0 -p0 -b .makefile |
---|
39 | |
---|
40 | %build |
---|
41 | %configure --with-documentation --enable-static=no |
---|
42 | %{__make} %{?_smp_mflags} |
---|
43 | |
---|
44 | %install |
---|
45 | %{__rm} -rf %{buildroot} |
---|
46 | %{__make} install DESTDIR="%{buildroot}" |
---|
47 | |
---|
48 | #create the doc devel dir |
---|
49 | %{__mkdir_p} %{buildroot}%{docdeveldir} |
---|
50 | |
---|
51 | #mv examples dir and pdf file to the doc devel dir |
---|
52 | %{__mv} %{buildroot}%{docdir}/examples \ |
---|
53 | %{buildroot}%{docdeveldir}/ |
---|
54 | %{__mv} %{buildroot}%{docdir}/UPnP_Programming_Guide.pdf \ |
---|
55 | %{buildroot}%{docdeveldir}/ |
---|
56 | %{__mv} %{buildroot}%{docdir}/IXML_Programming_Guide.pdf \ |
---|
57 | %{buildroot}%{docdeveldir}/ |
---|
58 | %{__mv} %{buildroot}%{docdir}/html \ |
---|
59 | %{buildroot}%{docdeveldir}/ |
---|
60 | |
---|
61 | %{__rm} %{buildroot}%{_libdir}/{libixml.la,libthreadutil.la,libupnp.la} |
---|
62 | |
---|
63 | %post -p /sbin/ldconfig |
---|
64 | |
---|
65 | %postun -p /sbin/ldconfig |
---|
66 | |
---|
67 | %clean |
---|
68 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
69 | |
---|
70 | %files |
---|
71 | %defattr(-, root, root, -) |
---|
72 | %doc AUTHORS ChangeLog COPYING INSTALL LICENSE NEWS README THANKS TODO |
---|
73 | %{_libdir}/libixml.so.* |
---|
74 | %{_libdir}/libthreadutil.so.* |
---|
75 | %{_libdir}/libupnp.so.* |
---|
76 | |
---|
77 | %files devel |
---|
78 | %defattr(-, root, root, 0755) |
---|
79 | %doc %{docdeveldir} |
---|
80 | %{_includedir}/upnp/ |
---|
81 | %{_libdir}/libixml.so |
---|
82 | %{_libdir}/libthreadutil.so |
---|
83 | %{_libdir}/libupnp.so |
---|
84 | %{_libdir}/pkgconfig/libupnp.pc |
---|
85 | |
---|
86 | %changelog |
---|
87 | * Mon Jan 13 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.6.19-1 |
---|
88 | - new upstream release. |
---|
89 | |
---|
90 | * Thu Mar 22 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.6.13-1 |
---|
91 | - new upstream release |
---|
92 | |
---|
93 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6.6-2 |
---|
94 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
95 | |
---|
96 | * Sun Mar 01 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.6-1 |
---|
97 | - new upstream release |
---|
98 | |
---|
99 | * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 1.6.5-1vl5 |
---|
100 | - applied new versioning policy, spec in utf-8 |
---|
101 | |
---|
102 | * Thu Feb 14 2008 Masahiro INOUE <miyabi.-.inoue@nifty.com> 1.6.5 |
---|
103 | - new upstream release |
---|
104 | |
---|
105 | * Tue Jul 31 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.0-0vl1 |
---|
106 | - new upstream release |
---|
107 | |
---|
108 | * Sat May 26 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.2-0vl1 |
---|
109 | - initial build for Vine Linux |
---|
110 | |
---|
111 | * Wed Feb 21 2007 Dag Wieers <dag@wieers.com> - 1.4.2-1 - +/ |
---|
112 | - Initial package. (using DAR) |
---|