CodeMirror: RPM spec mode

1
#
2
# spec file for package minidlna
3
#
4
# Copyright (c) 2011, Sascha Peilicke <saschpe@gmx.de>
5
#
6
# All modifications and additions to the file contributed by third parties
7
# remain the property of their copyright owners, unless otherwise agreed
8
# upon. The license for this file, and modifications and additions to the
9
# file, is the same license as for the pristine package itself (unless the
10
# license for the pristine package is not an Open Source License, in which
11
# case the license is the MIT License). An "Open Source License" is a
12
# license that conforms to the Open Source Definition (Version 1.9)
13
# published by the Open Source Initiative.
14
 
15
 
16
Name:           libupnp6
17
Version:        1.6.13
18
Release:        0
19
Summary:        Portable Universal Plug and Play (UPnP) SDK
20
Group:          System/Libraries
21
License:        BSD-3-Clause
22
Url:            http://sourceforge.net/projects/pupnp/
23
Source0:        http://downloads.sourceforge.net/pupnp/libupnp-%{version}.tar.bz2
24
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
25
 
26
%description
27
The portable Universal Plug and Play (UPnP) SDK provides support for building
28
UPnP-compliant control points, devices, and bridges on several operating
29
systems.
30
 
31
%package -n libupnp-devel
32
Summary:        Portable Universal Plug and Play (UPnP) SDK
33
Group:          Development/Libraries/C and C++
34
Provides:       pkgconfig(libupnp)
35
Requires:       %{name} = %{version}
36
 
37
%description -n libupnp-devel
38
The portable Universal Plug and Play (UPnP) SDK provides support for building
39
UPnP-compliant control points, devices, and bridges on several operating
40
systems.
41
 
42
%prep
43
%setup -n libupnp-%{version}
44
 
45
%build
46
%configure --disable-static
47
make %{?_smp_mflags}
48
 
49
%install
50
%makeinstall
51
find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
52
 
53
%post -p /sbin/ldconfig
54
 
55
%postun -p /sbin/ldconfig
56
 
57
%files
58
%defattr(-,root,root,-)
59
%doc ChangeLog NEWS README TODO
60
%{_libdir}/libixml.so.*
61
%{_libdir}/libthreadutil.so.*
62
%{_libdir}/libupnp.so.*
63
 
64
%files -n libupnp-devel
65
%defattr(-,root,root,-)
66
%{_libdir}/pkgconfig/libupnp.pc
67
%{_libdir}/libixml.so
68
%{_libdir}/libthreadutil.so
69
%{_libdir}/libupnp.so
70
%{_includedir}/upnp/
71
 
72
%changelog
 
 

MIME types defined: text/x-rpm-spec.