NO_CHANGELOG option
This commit is contained in:
parent
765970be41
commit
962dcda3a7
2
BUILD.md
2
BUILD.md
|
@ -72,6 +72,8 @@ Or alternatively you can install QtCreator and then open the pianobooster.pro.
|
|||
|
||||
**NO_LICENSE**: do not install license; disabled by default.
|
||||
|
||||
**NO_CHANGELOG**: do not install changelog; disabled by default.
|
||||
|
||||
**WITH_MAN**: install man page; disabled by default.
|
||||
|
||||
**WITH_TIMIDITY**: install desktop file and wrapper script for timidity; disabled by default.
|
||||
|
|
|
@ -7,7 +7,7 @@ v0.7.0:
|
|||
- Fix Qt strings localization
|
||||
- New options: INSTALL_ALL_LANGS, USE_SYSTEM_FONT, NO_DOCS, USE_SYSTEM_RTMIDI,
|
||||
WITH_MAN, WITH_TIMIDITY, WITH_FLUIDSYNTH, USE_FTGL, NO_LANGS, NO_LICENSE,
|
||||
DATA_DIR, USE_TIMIDITY
|
||||
DATA_DIR, USE_TIMIDITY, NO_CHANGELOG
|
||||
- Allow to switch between languages within a session
|
||||
- Add Piano Keyboard widget
|
||||
- Update documentation
|
|
@ -185,7 +185,7 @@ DOCUMENTATION
|
|||
|
||||
[Documentation](doc/README.md)
|
||||
|
||||
[Release Notes](ReleaseNotes.txt)
|
||||
[Changelog](Changelog.txt)
|
||||
|
||||
BUGTRACKER
|
||||
==========
|
||||
|
|
|
@ -9,6 +9,7 @@ isEmpty(USE_FTGL): USE_FTGL="ON"
|
|||
isEmpty(USE_TIMIDITY): USE_TIMIDITY="OFF"
|
||||
isEmpty(NO_DOCS): NO_DOCS="OFF"
|
||||
isEmpty(NO_LICENSE): NO_LICENSE="OFF"
|
||||
isEmpty(NO_CHANGELOG): NO_CHANGELOG="OFF"
|
||||
isEmpty(WITH_MAN): WITH_MAN="OFF"
|
||||
isEmpty(WITH_TIMIDITY): WITH_TIMIDITY="OFF"
|
||||
isEmpty(WITH_FLUIDSYNTH): WITH_FLUIDSYNTH="OFF"
|
||||
|
@ -173,7 +174,7 @@ unix {
|
|||
contains(NO_DOCS, OFF){
|
||||
message(building with docs)
|
||||
docs.path = $$PREFIX/share/doc/pianobooster
|
||||
docs.files = README.md ReleaseNotes.txt doc/faq.md
|
||||
docs.files = README.md doc/faq.md
|
||||
INSTALLS += docs
|
||||
}
|
||||
|
||||
|
@ -182,6 +183,12 @@ unix {
|
|||
license.path = $$PREFIX/share/licenses/pianobooster
|
||||
license.files = license.txt
|
||||
INSTALLS += license
|
||||
|
||||
contains(NO_CHANGELOG, OFF){
|
||||
message(building with changelog)
|
||||
changelog.path = $$PREFIX/share/doc/pianobooster
|
||||
changelog.files = Changelog.txt
|
||||
INSTALLS += changelog
|
||||
}
|
||||
|
||||
contains(WITH_MAN, ON){
|
||||
|
|
|
@ -4,6 +4,8 @@ pianobooster (0.7.0) unstable; urgency=medium
|
|||
* Update dependencies
|
||||
* Update copyright
|
||||
* Update description
|
||||
* Bump policy, dh12
|
||||
* Shorten debian/rules
|
||||
|
||||
-- Alexey Loginov <alexl@mageia.org> Wed, 19 Jun 2019 01:08:17 +0100
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
11
|
|
@ -4,7 +4,7 @@ Priority: optional
|
|||
Maintainer: Alexey Loginov <alexl@mageia.org>
|
||||
Build-Depends:
|
||||
cmake,
|
||||
debhelper (>= 10),
|
||||
debhelper-compat (= 12),
|
||||
hicolor-icon-theme,
|
||||
libasound2-dev,
|
||||
libfluidsynth-dev,
|
||||
|
@ -15,7 +15,7 @@ Build-Depends:
|
|||
librtmidi-dev,
|
||||
qtbase5-dev,
|
||||
qttools5-dev
|
||||
Standards-Version: 4.1.4
|
||||
Standards-Version: 4.4.0
|
||||
Homepage: https://github.com/captnfab/PianoBooster
|
||||
|
||||
Package: pianobooster
|
||||
|
|
|
@ -46,10 +46,17 @@ Copyright:
|
|||
License: CC-BY
|
||||
These pieces of music have been created to work with PianoBooster and
|
||||
have the creative commons copyright.
|
||||
.
|
||||
The complete text of this License can be found in
|
||||
`/usr/share/common-licenses/CC0-1.0'.
|
||||
.
|
||||
See https://creativecommons.org/2014/01/07/plaintext-versions-of-creative-commons-4-0-licenses/
|
||||
|
||||
Files: debian/*
|
||||
Copyright:
|
||||
2009, Miriam Ruiz <little_miry@yahoo.es>
|
||||
2018, Olivier Humbert <trebmuh@tuxfamily.org>
|
||||
2019, Barak A. Pearlmutter <bap@debian.org>
|
||||
License: GPL-3+
|
||||
|
||||
License: GPL-3+
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
usr/* usr/
|
|
@ -3,86 +3,33 @@
|
|||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
|
||||
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
|
||||
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
|
||||
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
|
||||
LDFLAGS2:=-Wl,-z,defs -Wl,-as-needed -Wl,--no-undefined
|
||||
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||
|
||||
BUILD_TREE=$(CURDIR)/build
|
||||
%:
|
||||
dh $@
|
||||
|
||||
config: config-stamp
|
||||
config-stamp:
|
||||
dh_testdir
|
||||
# Perform an out-of-tree build to keep a clean source tree
|
||||
mkdir -p $(BUILD_TREE)
|
||||
dh_auto_configure --builddirectory=$(BUILD_TREE) --sourcedirectory=. -- \
|
||||
--debug-output \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DCMAKE_C_FLAGS:STRING="$(CFLAGS) $(CPPFLAGS)" \
|
||||
-DCMAKE_CXX_FLAGS:STRING="$(CXXFLAGS) $(CPPFLAGS)" \
|
||||
-DBUILD_STATIC:BOOL=ON \
|
||||
-DCMAKE_SHARED_LINKER_FLAGS:STRING="$(LDFLAGS) $(LDFLAGS2)" \
|
||||
-DCMAKE_EXE_LINKER_FLAGS:STRING="$(LDFLAGS) $(LDFLAGS2)" \
|
||||
override_dh_auto_configure:
|
||||
dh_auto_configure -- \
|
||||
-DCMAKE_INSTALL_BINDIR=/usr/games \
|
||||
-DUSE_SYSTEM_FONT=ON \
|
||||
-DINSTALL_ALL_LANGS=ON \
|
||||
-DUSE_SYSTEM_RTMIDI=ON \
|
||||
-DWITH_MAN=ON \
|
||||
-DWITH_TIMIDITY=ON \
|
||||
-DWITH_FLUIDSYNTH=ON \
|
||||
-DWITH_TIMIDITY=ON \
|
||||
-DUSE_FLUIDSYNTH=ON \
|
||||
-DUSE_TIMIDITY=ON \
|
||||
-DCMAKE_INSTALL_PREFIX="$(CURDIR)/usr"
|
||||
touch $@
|
||||
-DNO_LICENSE=ON \
|
||||
-DNO_CHANGELOG=ON
|
||||
|
||||
build-stamp: config
|
||||
override_dh_installchangelogs:
|
||||
dh_installchangelogs Changelog.txt
|
||||
|
||||
# Not much benefit from compressing the little markdown documentation files.
|
||||
override_dh_compress:
|
||||
dh_compress --exclude=.md
|
||||
|
||||
refresh-tr:
|
||||
dh_testdir
|
||||
cd $(BUILD_TREE); $(MAKE)
|
||||
touch $@
|
||||
|
||||
build-indep:
|
||||
|
||||
build-arch: build-stamp
|
||||
|
||||
build: build-arch build-indep
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -fv build-stamp config-stamp
|
||||
rm -fvr $(BUILD_TREE)
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_prep
|
||||
dh_installdirs
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep:
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch: install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
$(MAKE) install -C $(BUILD_TREE)
|
||||
dh_installchangelogs
|
||||
dh_installdocs
|
||||
dh_installexamples
|
||||
dh_install
|
||||
dh_installmenu
|
||||
dh_installman
|
||||
dh_link
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
[ ! -e /usr/bin/dh_buildinfo ] || dh_buildinfo
|
||||
dh_installdeb
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: config build build-indep build-arch clean binary-indep binary-arch binary install
|
||||
@echo Update translations
|
||||
lupdate -verbose pianobooster.pro
|
||||
|
|
|
@ -5,10 +5,10 @@ Architecture: any
|
|||
Version: 0.7.0
|
||||
Maintainer: Alexey Loginov <alexl@mageia.org>
|
||||
Homepage: https://github.com/captnfab/PianoBooster
|
||||
Standards-Version: 4.1.4
|
||||
Standards-Version: 4.4.0
|
||||
Build-Depends:
|
||||
cmake,
|
||||
debhelper (>= 10),
|
||||
debhelper-compat (= 12),
|
||||
hicolor-icon-theme,
|
||||
libasound2-dev,
|
||||
libfluidsynth-dev,
|
||||
|
|
|
@ -84,7 +84,7 @@ PianoBooster, using the PC keyboard ('x' is middle C), but a MIDI piano
|
|||
is really recommended.
|
||||
|
||||
%files
|
||||
%doc README.md ReleaseNotes.txt doc/faq.md
|
||||
%doc README.md Changelog.txt doc/faq.md
|
||||
%license license.txt
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
|
@ -188,6 +188,7 @@ even without a plugged-in MIDI keyboard.
|
|||
-DUSE_SYSTEM_FONT=ON \
|
||||
-DNO_DOCS=ON \
|
||||
-DNO_LICENSE=ON \
|
||||
-DNO_CHANGELOG=ON \
|
||||
-DINSTALL_ALL_LANGS=ON \
|
||||
-DUSE_SYSTEM_RTMIDI=ON \
|
||||
-DWITH_MAN=ON \
|
||||
|
@ -200,6 +201,7 @@ even without a plugged-in MIDI keyboard.
|
|||
USE_SYSTEM_FONT=ON \
|
||||
NO_DOCS=ON \
|
||||
NO_LICENSE=ON \
|
||||
NO_CHANGELOG=ON \
|
||||
INSTALL_ALL_LANGS=ON \
|
||||
USE_SYSTEM_RTMIDI=ON \
|
||||
WITH_MAN=ON \
|
||||
|
|
|
@ -62,6 +62,7 @@ cmake \
|
|||
-DUSE_SYSTEM_FONT=ON \
|
||||
-DNO_DOCS=ON \
|
||||
-DNO_LICENSE=ON \
|
||||
-DNO_CHANGELOG=ON \
|
||||
-DINSTALL_ALL_LANGS=ON \
|
||||
-DUSE_SYSTEM_RTMIDI=OFF \
|
||||
-DWITH_MAN=ON \
|
||||
|
@ -76,7 +77,7 @@ make install/strip DESTDIR=$PKG
|
|||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
README.md ReleaseNotes.txt doc/faq.md license.txt \
|
||||
README.md Changelog.txt doc/faq.md license.txt \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
|
|
|
@ -262,7 +262,6 @@ INSTALL(TARGETS pianobooster RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
|||
|
||||
if(NOT NO_DOCS)
|
||||
INSTALL( FILES ../README.md DESTINATION share/doc/pianobooster/ )
|
||||
INSTALL( FILES ../ReleaseNotes.txt DESTINATION share/doc/pianobooster/ )
|
||||
INSTALL( FILES ../doc/faq.md DESTINATION share/doc/pianobooster/ )
|
||||
endif()
|
||||
|
||||
|
@ -270,6 +269,10 @@ if(NOT NO_LICENSE)
|
|||
INSTALL( FILES ../license.txt DESTINATION share/licenses/pianobooster/ )
|
||||
endif()
|
||||
|
||||
if(NOT NO_CHANGELOG)
|
||||
INSTALL( FILES ../Changelog.txt DESTINATION share/doc/pianobooster/ )
|
||||
endif()
|
||||
|
||||
if(WITH_MAN)
|
||||
INSTALL( FILES ../pianobooster.6 DESTINATION share/man/man6/ )
|
||||
endif()
|
||||
|
|
|
@ -157,7 +157,7 @@ Section "Install Section"
|
|||
CreateDirectory $INSTDIR\doc
|
||||
SetOutPath $INSTDIR\doc
|
||||
File FilesForRelease\README.md
|
||||
File FilesForRelease\ReleaseNotes.txt
|
||||
File FilesForRelease\Changelog.txt
|
||||
File FilesForRelease\doc\faq.md
|
||||
File FilesForRelease\license.txt
|
||||
File FilesForRelease\gplv3.txt
|
||||
|
@ -180,7 +180,7 @@ Section "Install Section"
|
|||
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Piano Booster.lnk" "$INSTDIR\pianobooster.exe" "" "$INSTDIR\pianobooster.exe" 0
|
||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\ReadMe.lnk" "$INSTDIR\doc\ReadMe.md" "" "$INSTDIR\doc\ReadMe.md" 0
|
||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\ReleaseNotes.lnk" "$INSTDIR\doc\ReleaseNotes.txt" "" "$INSTDIR\doc\ReleaseNotes.txt" 0
|
||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\ReleaseNotes.lnk" "$INSTDIR\doc\Changelog.txt" "" "$INSTDIR\doc\Changelog.txt" 0
|
||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\FAQ.lnk" "$INSTDIR\doc\faq.md" "" "$INSTDIR\doc\faq.md" 0
|
||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
|
||||
|
||||
|
@ -208,7 +208,7 @@ Section "Uninstall"
|
|||
; Remove files and uninstaller
|
||||
Delete $INSTDIR\*.*
|
||||
Delete $INSTDIR\doc\README.md
|
||||
Delete $INSTDIR\doc\ReleaseNotes.txt
|
||||
Delete $INSTDIR\doc\Changelog.txt
|
||||
Delete $INSTDIR\doc\faq.md
|
||||
Delete $INSTDIR\doc\license.txt
|
||||
Delete $INSTDIR\doc\gplv3.txt
|
||||
|
|
Loading…
Reference in New Issue