Ignore:
Timestamp:
Mar 5, 2019, 10:13:26 PM (7 years ago)
Author:
tellie
Message:

spec: fluidsynth: Release version 2.0.4-2.

File:
1 edited

Legend:

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

    r1606 r1617  
     1Summary:      Real-time software synthesizer
     2Name:         fluidsynth
     3Version:      2.0.4
     4Release:      2%{?dist}
     5URL:          http://www.fluidsynth.org/
     6#Source0:      https://github.com/Fluidsynth/fluidsynth/archive/v%{version}/fluidsynth-%{version}.tar.gz
     7License:      LGPLv2+
     8Requires:     fluidsynth-libs%{?_isa} = %{version}-%{release}
    19
    2 %define name    fluidsynth
    3 %define version 2.0.4
    4 %define release 2
    5 #%define prefix  /@unixroot/usr
     10%scm_source github http://github.com/komh/fluidsynth-os2 master
    611
    7 Summary: A real-time software synthesizer based on SoundFont 2 specifications.
    8 Name: %{name}
    9 Version: %{version}
    10 Release: %{release}
    11 #Prefix: %{prefix}
    12 License: LGPLv2+
    13 Group: Sound
    14 #Source: http://savannah.nongnu.org/download/fluid/stable.pkg/%{version}/fluidsynth-%{version}.tar.gz
    15 %scm_source github http://github.com/komh/fluidsynth-os2 master
    16 URL: http://www.fluidsynth.org/
    17 BuildRoot: /var/tmp/%{name}-%{version}
     12# Re-fix multi-lib conflict RHBZ#528240
     13#Patch0:       fluidsynth-no_date_footer.patch
    1814
    19 Requires: libogg-devel
    20 Requires: flac-devel
    21 Requires: libvorbis-devel
     15BuildRequires: libogg-devel
     16BuildRequires: flac-devel
     17BuildRequires: libvorbis-devel
     18#BuildRequires: alsa-lib-devel
     19BuildRequires: cmake
     20#BuildRequires: dbus-devel
     21BuildRequires: gcc
     22#%if !0%{?flatpak}
     23#BuildRequires: jack-audio-connection-kit-devel
     24#%endif
     25#BuildRequires: ladspa-devel
     26#BuildRequires: libsndfile-devel
     27BuildRequires: ncurses-devel
     28BuildRequires: pkgconfig
     29# Disabled for now:
     30# http://sourceforge.net/apps/trac/fluidsynth/ticket/51
     31# To enable portaudio support one also has to pass
     32# -Denable-portaudio=on to cmake
     33# BuildRequires: portaudio-devel
     34#BuildRequires: pulseaudio-libs-devel
     35BuildRequires: readline-devel
     36
     37# For documentation:
     38BuildRequires: doxygen
    2239
    2340%description
    24 FluidSynth is a real-time software synthesizer based on the SoundFont
    25 2 specifications. FluidSynth can read MIDI events from MIDI input
    26 devices and render them to audio devices using SoundFont files to
    27 define the instrument sounds. It can also play MIDI files and supports
    28 real time effect control via SoundFont modulators and MIDI
    29 controls. FluidSynth can be interfaced to other programs in different
    30 ways, including linking as a shared library.
     41FluidSynth is a real-time software synthesizer based on the SoundFont 2
     42specifications. It is a "software synthesizer". FluidSynth can read MIDI events
     43from the MIDI input device and render them to the audio device. It features
     44real-time effect modulation using SoundFont 2.01 modulators, and a built-in
     45command line shell. It can also play MIDI files (note: FluidSynth was previously
     46called IIWU Synth).
    3147
    3248%package libs
    3349Summary:   Real-time software synthesizer run-time libraries
    34 Group:     System Environment/Libraries
    3550
    3651%description libs
     
    4055
    4156%package devel
    42 Summary: Libraries and includes to build FluidSynth into other applications
    43 Group: Development/Libraries
     57Summary:   Real-time software synthesizer development files
     58Requires:  fluidsynth-libs%{?_isa} = %{version}-%{release}
    4459
    4560%description devel
    46 FluidSynth is a real-time software synthesizer based on the SoundFont
    47 2 specifications. FluidSynth can read MIDI events from MIDI input
    48 devices and render them to audio devices using SoundFont files to
    49 define the instrument sounds. It can also play MIDI files and supports
    50 real time effect control via SoundFont modulators and MIDI
    51 controls. FluidSynth can be interfaced to other programs in different
    52 ways, including linking as a shared library.
     61FluidSynth is a real-time software synthesizer based on the SoundFont 2
     62specifications. It is a "software synthesizer". This package holds header files
     63for building programs that link against fluidsynth.
    5364
    54 This package contains libraries and includes for building applications
    55 with FluidSynth support.
     65%debug_package
    5666
    5767%prep
     68#%setup -q
     69#%patch0 -p1 -b .no.date
    5870%scm_setup
    5971
    6072%build
    61 mkdir builder
    62 cd builder
    6373export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    6474export LIBS="-lcx"
     75mkdir -p build
     76cd build
    6577
    66 %cmake ..
    67 #%make_build -C builder
    68 make %{?_smp_mflags}
     78#%if 0%{?flatpak}
     79#%define enable_jack off
     80#%else
     81#%define enable_jack on
     82#%endif
     83
     84#%{cmake}  -Denable-ladspa=on -Denable-jack=%{enable_jack} ..
     85%{cmake} ..
     86#popd
     87cd ..
     88
     89# build fluidsynth
     90make %{?_smp_mflags} -C build
     91
     92# build docs
     93doxygen ./doc
    6994
    7095%install
    71 doxygen D:/rpmbuild/Build/fluidsynth-os2-master/doc
    72 make install/fast DESTDIR=%{buildroot} -C builder
    73 install -p -m0755 builder/src/fluidsy2.dll $RPM_BUILD_ROOT/%{_libdir}
     96make DESTDIR=$RPM_BUILD_ROOT -C build install
     97install -p -m0755 build/src/fluidsy2.dll $RPM_BUILD_ROOT/%{_libdir}
    7498
    75 %clean
    76 #if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi
    7799
    78100%files
    79 %defattr(-,root,root)
    80 %{_bindir}/fluid*.exe
     101%{_bindir}/fluid*
     102%{_mandir}/man1/fluidsynth*
    81103%exclude %{_bindir}/fluidsy2.dll
    82 #%{_mandir}/man1/fluidsynth*
     104%exclude %{_bindir}/fluidsynth.dbg
     105%exclude %{_bindir}/fluidsy2.dbg
    83106
    84107%files libs
    85 %defattr(-,root,root)
    86108%license LICENSE
    87 %doc ChangeLog AUTHORS NEWS README.md THANKS TODO doc/*.pdf
     109%doc AUTHORS NEWS README.md THANKS TODO doc/*.pdf
    88110%{_libdir}/fluidsy2.dll
    89111
    90112%files devel
    91 %defattr(-,root,root)
    92113%doc html/*.html
    93114%doc doc/*.c
    94115%doc doc/*fluid*.txt
    95116%doc doc/*.odt
    96 %{_libdir}/fluidsynth_dll.a
     117%doc ChangeLog
    97118%{_includedir}/fluidsynth.h
    98119%{_includedir}/fluidsynth/
    99 %{_libdir}/fluidsy2.dll
     120%{_libdir}/*.a
    100121%{_libdir}/pkgconfig/*
    101122
     123
    102124%changelog
    103 * Sun Mar 03 2019 Elbert Pol <elbert.pol@gmail.com> - 2.0.4-2
    104 - Add some requirements
     125* Mon Mar 04 2019 Elbert Pol <elbert.pol@gmail.com> - 1.3.2-2
     126- Use spec file from fedora
     127- Add debug to specfile
    105128
    106129* Thu Feb 28 2019 Elbert Pol <elbert.pol@gmail.com>
Note: See TracChangeset for help on using the changeset viewer.