ympd.spec 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #
  2. # spec file for package ympd
  3. #
  4. # Copyright (c) 2014 Markus S. <kamikazow@web.de>
  5. #
  6. # This file is free software: you can redistribute it and/or modify
  7. # it under the terms of the GNU General Public License as published by
  8. # the Free Software Foundation, either version 2 of the License, or
  9. # (at your option) any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU General Public License
  17. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. Name: ympd
  19. Version: 1.2.2
  20. Release: 0%{?dist}
  21. Summary: ympd is a lightweight MPD (Music Player Daemon) web client
  22. Group: Applications/Multimedia
  23. License: GPL
  24. URL: http://www.ympd.org/
  25. # For this spec file to work, the ympd sources must be located in a directory
  26. # named ympd-1.2.2 (with "1.2.2" being the version number defined above).
  27. # If the sources are compressed in another format than ZIP, change the
  28. # file extension accordingly.
  29. Source0: %{name}-%{version}.zip
  30. # Package names only verified with Fedora.
  31. # Should the packages in your distro be named dirrerently,
  32. # see http://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
  33. # %if 0%{?fedora}
  34. BuildRequires: cmake
  35. BuildRequires: unzip
  36. BuildRequires: libmpdclient-devel
  37. Requires: libmpdclient
  38. # %endif
  39. %description
  40. ympd is a lightweight MPD (Music Player Daemon) web client that runs without
  41. a dedicated webserver or interpreters like PHP, NodeJS or Ruby.
  42. It's tuned for minimal resource usage and requires only very litte dependencies.
  43. %prep
  44. %setup -q
  45. %build
  46. mkdir build
  47. pushd build
  48. %cmake .. -DCMAKE_INSTALL_PREFIX_PATH=%{_prefix}
  49. make PREFIX=%{_prefix} %{?_smp_mflags}
  50. popd
  51. %install
  52. pushd build
  53. %{make_install}
  54. popd
  55. %files
  56. %defattr(-,root,root,-)
  57. %doc LICENSE README.md
  58. %{_bindir}/%{name}
  59. %{_mandir}/man[^3]/*
  60. %changelog