]> git.pld-linux.org Git - SPECS.git/blob - glyr.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / glyr.spec
1 Summary:        Search engine for music related metadata
2 Summary(pl.UTF-8):      Silnik wyszukiwania metadanych związanych z muzyką
3 Name:           glyr
4 Version:        1.0.10
5 Release:        1
6 License:        LGPL v3+
7 Group:          Applications/Multimedia
8 #Source0Download: https://github.com/sahib/glyr/releases
9 Source0:        https://github.com/sahib/glyr/archive/%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5:  85f5f8608bb78d4dd01c7170ea4c6997
11 Patch0:         optflags.patch
12 URL:            https://github.com/sahib/glyr
13 BuildRequires:  cmake >= 2.8.0
14 BuildRequires:  curl-devel
15 BuildRequires:  glib2-devel >= 1:2.10
16 BuildRequires:  pkgconfig
17 BuildRequires:  sqlite3-devel >= 3
18 BuildRequires:  rpmbuild(macros) >= 1.605
19 Requires:       %{name}-libs = %{version}-%{release}
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Glyr CLI tool.
24
25 The sort of metadata glyr is searching (and downloading) is usually
26 the data you see in your musicplayer. And indeed, originally it was
27 written to serve as internally library for a musicplayer, but has been
28 extended to work as a standalone program which is able to download:
29
30 - cover art
31 - lyrics
32 - bandphotos
33 - artist biography
34 - album reviews
35 - tracklists of an album
36 - a list of albums from a specific artist
37 - tags, either related to artist, album or title relations, for
38   example links to wikipedia
39 - similar artists
40 - similar songs.
41
42 %description -l pl.UTF-8
43 Narzędzie Glyr działające z linii poleceń.
44
45 Rodzaje metadanych wyszukiwanych (i pobieranych) przez glyra to zwykle
46 dane widziane w odtwarzaczu muzyki. I faktycznie, pierwotnie kod
47 został napisany jako wewnętrzna biblioteka dla odtwarzacza muzyki, ale
48 następnie został rozszerzony, aby działał jako samodzielny program,
49 potrafiący pobrać:
50  - grafikę z okładki
51  - teksty
52  - fotografie zespołu
53  - biografię wykonawcy
54  - listę ścieżek albumu
55  - listę albumów wykonawcy
56  - znaczniki, powiązane z wykonawcą, albumem lub tytułami, na przykład
57    odnośniki do wikipedii
58  - podobnych wykonawców
59  - podobne utwory.
60
61 %package libs
62 Summary:        Search engine for music related metadata - shared library
63 Summary(pl.UTF-8):      Silnik wyszukiwania metadanych związanych z muzyką - biblioteka współdzielona
64 Group:          Libraries
65 Requires:       glib2 >= 1:2.10
66
67 %description libs
68 Glyr is a search engine for music related metadata. This package
69 contains shared library.
70
71 %description libs -l pl.UTF-8
72 Glyr to silnik wyszukiwania metadanych związanych z muzyką. Ten
73 pakiet zawiera bibliotekę współdzieloną.
74
75 %package devel
76 Summary:        Header files for Glyr library
77 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Glyr
78 Group:          Development/Libraries
79 Requires:       %{name}-libs = %{version}-%{release}
80 Requires:       curl-devel
81 Requires:       glib2-devel >= 1:2.10
82 Requires:       sqlite3-devel >= 3
83
84 %description devel
85 Glyr development files.
86
87 %prep
88 %setup -q
89 %patch0 -p0
90
91 %build
92 install -d build
93 cd build
94 # NOTE: CMAKE_BUILD_TYPE is not functioning in this project, so we redefine them for _RELEASE
95 %cmake .. \
96         -DCMAKE_C_FLAGS_RELEASE="%{rpmcflags}" \
97         -DCMAKE_EXE_LINKER_FLAGS_RELEASE="%{rpmldflags}" \
98         -DCMAKE_SHARED_LINKER_FLAGS_RELEASE="%{rpmldflags}"
99
100 %{__make}
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104
105 %{__make} -C build install/fast \
106         DESTDIR=$RPM_BUILD_ROOT
107
108 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
109 cp -a src/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
110
111 %clean
112 rm -rf $RPM_BUILD_ROOT
113
114 %post   libs -p /sbin/ldconfig
115 %postun libs -p /sbin/ldconfig
116
117 %files
118 %defattr(644,root,root,755)
119 %doc AUTHORS CHANGELOG README.textile
120 %attr(755,root,root) %{_bindir}/glyrc
121
122 %files libs
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libglyr.so.*.*.*
125 %attr(755,root,root) %ghost %{_libdir}/libglyr.so.1
126
127 %files devel
128 %defattr(644,root,root,755)
129 %attr(755,root,root) %{_libdir}/libglyr.so
130 %{_includedir}/glyr
131 %{_pkgconfigdir}/libglyr.pc
132 %{_examplesdir}/%{name}-%{version}
This page took 0.118476 seconds and 3 git commands to generate.