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