File: libmikmod.spec

package info (click to toggle)
libmikmod 3.3.11.1-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 5,884 kB
  • sloc: ansic: 34,466; sh: 4,443; makefile: 522
file content (92 lines) | stat: -rw-r--r-- 2,282 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
%define version 3.3.11.1
%define release 1

Summary:    sound library for module files
Name:       libmikmod
Version:    %{version}
Release:    %{release}
License:    LGPL
Group:      System Environment/Libraries
URL:        http://mikmod.sourceforge.net/
#Source:    http://mikmod.sourceforge.net/files/%{name}-%{version}.tar.gz
Source:     http://download.sourceforge.net/mikmod/%{name}-%{version}.tar.gz
BuildRoot:  %{_tmppath}/%{name}-%{version}-root

%description
A portable sound library for Unix and other systems, capable of playing
samples as well as module files, on a wide range of sound devices.

%package    devel
Summary:    Libraries and include files to develop libmikmod applications
Group:      Development/Libraries
Requires:   %{name} = %{version}

%description devel
Install the libmikmod-devel package if you want to develop applications
that will use the libmikmod library.

%prep
%setup -q -n %{name}-%{version}

%build
%configure
make

%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
%makeinstall
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT

%post   -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%post devel
if [ "$1" = "1" ]; then # first install
  if [ -x /sbin/install-info ]; then
    for infofile in %{_infodir}/mikmod.info*; do
      /sbin/install-info $infofile %{_infodir}/dir
    done
  fi
fi

%preun devel
if [ "$1" = "0" ]; then # last uninstall
  if [ -x /sbin/install-info ]; then
    for infofile in %{_infodir}/mikmod.info*; do
      /sbin/install-info --delete $infofile %{_infodir}/dir
    done
  fi
fi

%ifos darwin
%define __defattr %defattr(-,root,wheel)
%define __soext   dylib
%else
%define __defattr %defattr(-,root,root)
%define __soext   so
%endif

%files
%{__defattr}
%doc AUTHORS COPYING.LESSER COPYING.LIB INSTALL NEWS README TODO
%ifnos darwin
%{_libdir}/libmikmod.%{__soext}.*
%else
%{_libdir}/libmikmod.*.%{__soext}
%endif

%files devel
%{__defattr}
%doc docs/mikmod.html
%{_bindir}/libmikmod-config
%{_mandir}/man?/*
%{_includedir}/mikmod.h
%{_libdir}/libmikmod.a
%{_libdir}/libmikmod.la
%{_libdir}/libmikmod.%{__soext}
%{_libdir}/pkgconfig/libmikmod.pc
%{_infodir}/mikmod.info*
%{_datadir}/aclocal/*