Ignore:
Timestamp:
Mar 2, 2019, 2:30:14 PM (7 years ago)
Author:
tellie
Message:

spec: mikmod: Release version 3.2.8-1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/mikmod.spec

    r716 r1603  
    1 %define svn_url http://svn.netlabs.org/repos/ports/mikmod/trunk
    2 %define svn_rev 1464
     1Name:           mikmod
     2Version:        3.2.8
     3Release:        1%{?dist}
     4Summary:        Console music module player
     5Group:          Applications/Multimedia
     6License:        GPLv2 and LGPLv2+
     7URL:            http://mikmod.sourceforge.net/
     8%scm_source svn http://svn.netlabs.org/repos/ports/mikmod/trunk 2340
    39
    4 Summary: Music module player
    5 Name: mikmod
    6 Version: 3.2.7
    7 Release: 1%{?dist}
    8 License: GPLv2 and LGPLv2+
    9 Group: Applications/Multimedia
    10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
    11 BuildRequires: ncurses-devel libmikmod-devel
    12 URL: http://mikmod.raphnet.net/
    13 #Source0: http://mikmod.raphnet.net/files/mikmod-%{version}-beta1.tar.bz2
    14 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
    15 #Patch0: mikmod-3.2.2-beta1-missing-protos.patch
    16 #Patch1: mikmod-3.2.2-beta1-various-fixes.patch
     10BuildRequires:  gcc
     11BuildRequires:  ncurses-devel
     12BuildRequires:  libmikmod-devel
    1713
    1814%description
     
    2824Install the mikmod package if you need a MOD music file player.
    2925
    30 
    3126%prep
    32 %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
    33 %setup -q
    34 %else
    35 %setup -q -n "%{name}-%{version}" -Tc
    36 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
    37 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
    38 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
    39 %endif
    40 
    41 #%patch0 -p1
    42 #%patch1 -p1 -b .various-fixes
    43 
    44 autoreconf -fi
     27%scm_setup
     28autoreconf -vif
    4529
    4630%build
    47 export LDFLAGS="-g -Zhigh-mem"
    48 
    49 %configure
    50 
    51 %{__make} %{?_smp_mflags} CFLAGS="-g $RPM_OPT_FLAGS `libmikmod-config --cflags`"
    52 
     31export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
     32export LIBS="-lcx"
     33%configure
     34make %{?_smp_mflags}
    5335
    5436%install
    55 rm -rf $RPM_BUILD_ROOT
    56 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
    57 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
    58 
    59 
    60 %clean
    61 rm -rf $RPM_BUILD_ROOT
    62 
     37%make_install INSTALL="install -p"
    6338
    6439%files
    65 %defattr(-, root, root)
    66 %doc AUTHORS COPYING NEWS README
    67 %{_bindir}/mikmod.exe
    68 %{_datadir}/mikmod
    69 %{_mandir}/man1/mikmod*
    70 
     40%license COPYING
     41%doc AUTHORS NEWS README
     42%{_bindir}/%{name}.exe
     43%{_datadir}/%{name}/
     44%{_mandir}/man1/%{name}.1*
    7145
    7246%changelog
    73 * Fri Mar 19 2016 Valery V. Sedletski <_valerius@mail.ru> - 3.2.7-1
     47* Sat Mar 02 2019 Elbert Pol <elbert.pol@gmail.com>
     48- Updated to latest source
     49- Change some .spec lines
     50
     51* Thu Apr 14 2016 Valery V.Sedletski <_valerius@mail.ru> - 3.2.7-2
     52- Made the .spec in accordance with Fedora version
     53
     54* Sat Mar 19 2016 Valery V. Sedletski <_valerius@mail.ru> - 3.2.7-1
    7455- Initial OS/2 packaging.
Note: See TracChangeset for help on using the changeset viewer.