Warning, /multimedia/kwave/kwave.spec.in is written in an unsupported language. File is not indexed.

0001 #############################################################################
0002 ##    Kwave                - kwave.spec
0003 ##                           -------------------
0004 ##    begin                : Sun Feb 03 2008
0005 ##    copyright            : (C) 2008 by Thomas Eschenbacher
0006 ##    email                : Thomas.Eschenbacher@gmx.de
0007 #############################################################################
0008 #
0009 #############################################################################
0010 ##                                                                          #
0011 ##    This program is free software; you can redistribute it and/or modify  #
0012 ##    it under the terms of the GNU General Public License as published by  #
0013 ##    the Free Software Foundation; either version 2 of the License, or     #
0014 ##    (at your option) any later version.                                   #
0015 ##                                                                          #
0016 #############################################################################
0017 
0018 # Please submit bugfixes or comments via http://bugs.opensuse.org/
0019 #
0020 
0021 # norootforbuild
0022 
0023 %define ver @KWAVE_VERSION@
0024 %define release @RPM_RELEASE@
0025 
0026 Summary:        KDE, Qt, WAV, Sound, Editor, Effects, playback, recording
0027 License:        GPL-2.0+
0028 Group:          Productivity/Multimedia/Sound/Editors and Converters
0029 
0030 Name:           @PROJECT_NAME@
0031 Version:        @KWAVE_VERSION@
0032 Release:        @RPM_RELEASE@
0033 Source0:        kwave-%{version}-1.tar.bz2
0034 Url:            http://kwave.sourceforge.net
0035 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
0036 # hack for SLE
0037 %ifarch i586
0038 BuildArch:      i586
0039 %endif
0040 %ifarch x86_64
0041 BuildArch:      x86_64
0042 %endif
0043 
0044 %define kf5_min_version @KF5_MIN_VERSION@
0045 %define qt5_min_version @QT_MIN_VERSION@
0046 
0047 # set some defaults if they are missing in the current RPM setup
0048 %if 0%{!?_kf5_applicationsdir:1}
0049 %define _kf5_applicationsdir %{_prefix}/share/applications
0050 %endif
0051 %if 0%{!?_kf5_appsdir:1}
0052 %define _kf5_appsdir         %{_prefix}/share
0053 %endif
0054 %if 0%{!?_kf5_htmldir:1}
0055 %define _kf5_htmldir         %{_prefix}/share/doc/HTML
0056 %endif
0057 %if 0%{!?_kf5_iconsdir:1}
0058 %define _kf5_iconsdir        %{_prefix}/share/icons
0059 %endif
0060 %if 0%{!?_kf5_modulesdir:1}
0061 %define _kf5_modulesdir      @KDE_INSTALL_PLUGINDIR@/kwave
0062 %endif
0063 
0064 # common for all distributions
0065 Requires:       %{name}-lang             = %{version}
0066 Requires:       audiofile               >= 0.3.0
0067 Requires:       fftw3                   >= 3.0
0068 Requires:       flac
0069 Requires:       libogg.so.0             >= 0.4.0
0070 Requires:       libsamplerate           >= 0.1.3
0071 Requires:       libvorbis               >= 1
0072 Requires:       libvorbisenc.so.2       >= 2.0.0
0073 Requires:       pulseaudio              >= 0.9.16
0074 BuildRequires:  audiofile-devel         >= 0.3.0
0075 BuildRequires:  extra-cmake-modules     >= 1.7.0
0076 BuildRequires:  ImageMagick
0077 BuildRequires:  cmake                   >= 2.8.12
0078 BuildRequires:  flac-devel
0079 BuildRequires:  fftw3-devel             >= 3.0
0080 BuildRequires:  gettext-devel
0081 BuildRequires:  libsamplerate-devel     >= 0.1.3
0082 BuildRequires:  libvorbis-devel         >= 1
0083 BuildRequires:  perl
0084 BuildRequires:  sed
0085 
0086 # SuSE specific:
0087 %if %{defined suse_version}
0088 Prefix:         /usr
0089 Requires:       alsa
0090 Requires:       kconfig                 >= %{kf5_min_version}
0091 Requires:       kconfigwidgets          >= %{kf5_min_version}
0092 Requires:       kcoreaddons             >= %{kf5_min_version}
0093 Requires:       kcrash                  >= %{kf5_min_version}
0094 Requires:       kdbusaddons             >= %{kf5_min_version}
0095 Requires:       kdoctools               >= %{kf5_min_version}
0096 Requires:       kguiaddons              >= %{kf5_min_version}
0097 Requires:       ki18n                   >= %{kf5_min_version}
0098 Requires:       kiconthemes             >= %{kf5_min_version}
0099 Requires:       kinit                   >= %{kf5_min_version}
0100 Requires:       kio                     >= %{kf5_min_version}
0101 Requires:       knotifications          >= %{kf5_min_version}
0102 Requires:       kservice                >= %{kf5_min_version}
0103 Requires:       ktextwidgets            >= %{kf5_min_version}
0104 Requires:       kxmlgui                 >= %{kf5_min_version}
0105 Requires:       kwidgetsaddons          >= %{kf5_min_version}
0106 Requires:       libopus
0107 Requires:       libmad
0108 Requires:       qtcore                  >= %{qt5_min_version}
0109 Requires:       qtconcurrent            >= %{qt5_min_version}
0110 Requires:       qtnetwork               >= %{qt5_min_version}
0111 Requires:       qtgui                   >= %{qt5_min_version}
0112 Requires:       qtmultimedia            >= %{qt5_min_version}
0113 Requires:       qtwidgets               >= %{qt5_min_version}
0114 
0115 BuildRequires:  alsa-devel
0116 BuildRequires:  fdupes
0117 BuildRequires:  kconfig-devel           >= %{kf5_min_version}
0118 BuildRequires:  kconfigwidgets-devel    >= %{kf5_min_version}
0119 BuildRequires:  kcoreaddons-devel       >= %{kf5_min_version}
0120 BuildRequires:  kcrash-devel            >= %{kf5_min_version}
0121 BuildRequires:  kdbusaddons-devel       >= %{kf5_min_version}
0122 BuildRequires:  kdoctools-devel         >= %{kf5_min_version}
0123 BuildRequires:  kguiaddons-devel        >= %{kf5_min_version}
0124 BuildRequires:  ki18n-devel             >= %{kf5_min_version}
0125 BuildRequires:  kiconthemes-devel       >= %{kf5_min_version}
0126 BuildRequires:  kinit-devel             >= %{kf5_min_version}
0127 BuildRequires:  kio-devel               >= %{kf5_min_version}
0128 BuildRequires:  knotifications-devel    >= %{kf5_min_version}
0129 BuildRequires:  kservice-devel          >= %{kf5_min_version}
0130 BuildRequires:  ktextwidgets-devel      >= %{kf5_min_version}
0131 BuildRequires:  kxmlgui-devel           >= %{kf5_min_version}
0132 BuildRequires:  kwidgetsaddons-devel    >= %{kf5_min_version}
0133 BuildRequires:  libogg-devel            >= 1
0134 BuildRequires:  libopus-devel
0135 BuildRequires:  libQt5Core-devel        >= %{qt5_min_version}
0136 BuildRequires:  libQt5Concurrent-devel  >= %{qt5_min_version}
0137 BuildRequires:  libQt5Network-devel     >= %{qt5_min_version}
0138 BuildRequires:  libQt5Gui-devel         >= %{qt5_min_version}
0139 BuildRequires:  libQt5Multimedia-devel  >= %{qt5_min_version}
0140 BuildRequires:  libQt5Widgets-devel     >= %{qt5_min_version}
0141 BuildRequires:  pulseaudio-devel
0142 BuildRequires:  rsvg-view
0143 BuildRequires:  update-desktop-files
0144 
0145 %define EXTRA_OPTS ""
0146 %define FDUPES %fdupes -s %{buildroot}
0147 %if 0%{?suse_version} == 1315
0148 # Leap 42.1 still uses old plugin dir
0149 %define _kf5_modulesdir %{_libdir}/plugins
0150 %else
0151 %define _kf5_modulesdir %{_libdir}/qt5/plugins
0152 %endif
0153 %endif
0154 
0155 # # Fedora specific:
0156 %if %{defined fedora}
0157 Prefix:         /usr
0158 Requires:       alsa-lib
0159 Requires:       kf5-kconfig              >= %{kf5_min_version}
0160 Requires:       kf5-kconfigwidgets       >= %{kf5_min_version}
0161 Requires:       kf5-kcoreaddons          >= %{kf5_min_version}
0162 Requires:       kf5-kcrash               >= %{kf5_min_version}
0163 Requires:       kf5-kdbusaddons          >= %{kf5_min_version}
0164 Requires:       kf5-kdoctools            >= %{kf5_min_version}
0165 Requires:       kf5-kguiaddons           >= %{kf5_min_version}
0166 Requires:       kf5-ki18n                >= %{kf5_min_version}
0167 Requires:       kf5-kiconthemes          >= %{kf5_min_version}
0168 Requires:       kf5-kinit                >= %{kf5_min_version}
0169 Requires:       kf5-kio                  >= %{kf5_min_version}
0170 Requires:       kf5-knotifications       >= %{kf5_min_version}
0171 Requires:       kf5-kservice             >= %{kf5_min_version}
0172 Requires:       kf5-ktextwidgets         >= %{kf5_min_version}
0173 Requires:       kf5-kxmlgui              >= %{kf5_min_version}
0174 Requires:       kf5-kwidgetsaddons       >= %{kf5_min_version}
0175 Requires:       opus
0176 Requires:       qt5-qtbase               >= %{qt5_min_version}
0177 Requires:       qt5-qtmultimedia         >= %{qt5_min_version}
0178 
0179 BuildRequires:  alsa-lib-devel
0180 BuildRequires:  fdupes
0181 BuildRequires:  kf5-kconfig-devel        >= %{kf5_min_version}
0182 BuildRequires:  kf5-kconfigwidgets-devel >= %{kf5_min_version}
0183 BuildRequires:  kf5-kcoreaddons-devel    >= %{kf5_min_version}
0184 BuildRequires:  kf5-kcrash-devel         >= %{kf5_min_version}
0185 BuildRequires:  kf5-kdbusaddons-devel    >= %{kf5_min_version}
0186 BuildRequires:  kf5-kdoctools-devel      >= %{kf5_min_version}
0187 BuildRequires:  kf5-kguiaddons-devel     >= %{kf5_min_version}
0188 BuildRequires:  kf5-ki18n-devel          >= %{kf5_min_version}
0189 BuildRequires:  kf5-kiconthemes-devel    >= %{kf5_min_version}
0190 BuildRequires:  kf5-kinit-devel          >= %{kf5_min_version}
0191 BuildRequires:  kf5-kio-devel            >= %{kf5_min_version}
0192 BuildRequires:  kf5-knotifications-devel >= %{kf5_min_version}
0193 BuildRequires:  kf5-kservice-devel       >= %{kf5_min_version}
0194 BuildRequires:  kf5-ktextwidgets-devel   >= %{kf5_min_version}
0195 BuildRequires:  kf5-kxmlgui-devel        >= %{kf5_min_version}
0196 BuildRequires:  kf5-kwidgetsaddons-devel >= %{kf5_min_version}
0197 BuildRequires:  opus-devel
0198 BuildRequires:  pulseaudio-libs-devel    >= 0.9.16
0199 BuildRequires:  qt5-qtbase-devel         >= %{qt5_min_version}
0200 BuildRequires:  qt5-qtmultimedia-devel   >= %{qt5_min_version}
0201 BuildRequires:  poxml
0202 
0203 %define EXTRA_OPTS ""
0204 %define FDUPES fdupes -s %{buildroot}
0205 %endif
0206 
0207 # # CentOS specific:
0208 # {defined centos_version}
0209 
0210 # # Mandriva specific:
0211 # {defined mandriva_version}
0212 
0213 # # RedHat specific:
0214 # {defined rhel_version}
0215 
0216 # # ScientificLinux specific:
0217 # {defined scientificlinux_version}
0218 
0219 %description
0220 With Kwave you can record, play back, import and edit many
0221 sorts of audio files including multi-channel files.<br>
0222 Kwave includes some plugins to transform audio files in
0223 several ways and presents a graphical view with a complete
0224 zoom- and scroll capability.
0225 
0226 %package doc
0227 Summary:        HTML Documentation of Kwave
0228 Group:          Documentation/HTML
0229 BuildArch:      noarch
0230 
0231 %description doc
0232 This package contains the HTML documentation for Kwave
0233 
0234 %package lang
0235 Summary:        Languages for package Kwave
0236 Group:          System/Localization
0237 BuildArch:      noarch
0238 
0239 %description lang
0240 Provides translations to the package Kwave
0241 
0242 %prep
0243 %setup -q
0244 
0245 %build
0246 unset DESTDIR
0247 mkdir build
0248 cd build
0249 CXXFLAGS="${CXXFLAGS} ${RPM_OPT_FLAGS}" CFLAGS="${CFLAGS} ${RPM_OPT_FLAGS}" \
0250     cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
0251     ${CONFIGURE_OPTS} %{EXTRA_OPTS} ..
0252 cd -
0253 
0254 make -C build %{?jobs:-j %jobs}
0255 
0256 %install
0257 make -C build DESTDIR="$RPM_BUILD_ROOT" SUID_ROOT="" install
0258 %if %{defined FDUPES}
0259     %{FDUPES}
0260 %endif
0261 %find_lang kwave %{name}.lang
0262 
0263 %files
0264 %defattr(-,root,root)
0265 %doc GNU-LICENSE AUTHORS LICENSES CHANGES README TODO
0266 %{_bindir}/%name
0267 %{_kf5_applicationsdir}/org.kde.%{name}.desktop
0268 %{_prefix}/@KDE_INSTALL_METAINFODIR@/org.kde.kwave.appdata.xml
0269 %{_prefix}/@SERVICETYPES_INSTALL_DIR@/kwave-plugin.desktop
0270 %{_libdir}/libkwave*
0271 %{_kf5_appsdir}/%{name}
0272 %{_kf5_iconsdir}/*
0273 %{_kf5_modulesdir}/kwaveplugin_*.so
0274 %exclude %{_kf5_htmldir}/*/%{name}
0275 
0276 %files doc
0277 %defattr(-,root,root,-)
0278 %doc %{_kf5_htmldir}/*/%{name}
0279 
0280 %files lang -f %{name}.lang
0281 %defattr(-,root,root,-)
0282 %exclude %{_kf5_htmldir}/*/%{name}
0283 
0284 %clean
0285 rm -Rf "$RPM_BUILD_ROOT"
0286 
0287 %post
0288 ldconfig
0289 
0290 %postun
0291 ldconfig
0292 
0293 %changelog