-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile.am
More file actions
33 lines (28 loc) · 732 Bytes
/
Copy pathMakefile.am
File metadata and controls
33 lines (28 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
SUBDIRS = src
EXTRA_DIST = spotify-tray.spec.in \
spotify-tray.desktop.in \
LICENSE \
README.md
desktopdir = $(datadir)/applications
desktop_in_files = spotify-tray.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
dist-hook:
for specfile in *.spec; do \
if test -f $$specfile; then \
cp -p $$specfile $(distdir); \
fi \
done
RPMDIR = ${PWD}
RPMRESULTDIR = rpmbuild
rpm: dist-bzip2
rpmbuild \
--clean \
--define "_sourcedir $(RPMDIR)" \
--define "_specdir $(RPMDIR)" \
--define "_builddir $(RPMDIR)" \
--define "_srcrpmdir $(RPMDIR)/$(RPMRESULTDIR)" \
--define "_rpmdir $(RPMDIR)/$(RPMRESULTDIR)" \
-ba spotify-tray.spec
clean-local:
-rm -f *.list
-rm -rf $(RPMRESULTDIR)