forked from asmigala/fedora-spec
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
79 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Tag: Tool | ||
# Type: Devel | ||
# Category: Tool | ||
|
||
Summary: An automatic CLAP validation and testing tool | ||
Name: clap-info | ||
Version: 1.0.0 | ||
Release: 1%{?dist} | ||
License: MIT | ||
URL: https://github.com/free-audio/clap-info | ||
|
||
Vendor: Audinux | ||
Distribution: Audinux | ||
|
||
# ./clap-source.sh <project> <tag> | ||
# ./clap-source.sh clap-info v1.0.0 | ||
|
||
Source0: clap-info.tar.gz | ||
Source1: clap-source.sh | ||
|
||
BuildRequires: gcc gcc-c++ | ||
BuildRequires: cmake | ||
BuildRequires: chrpath | ||
|
||
%description | ||
This is a CLAP information tool which simply loads a clap and allows you to print | ||
a variety of information about the plugin. It prints the information in machine-readable (JSON) format. | ||
|
||
%prep | ||
%autosetup -n %{name} | ||
|
||
sed -i -e "s/add_library(jsoncpp/add_library(jsoncpp STATIC/g" libs/CMakeLists.txt | ||
|
||
%build | ||
|
||
%cmake | ||
%cmake_build | ||
|
||
%install | ||
|
||
install -m 755 -d %{buildroot}/%{_bindir}/ | ||
cp %{__cmake_builddir}/clap-info %{buildroot}/%{_bindir}/ | ||
|
||
install -m 755 -d %{buildroot}/%{_libdir}/ | ||
cp %{__cmake_builddir}/libclap-scanner.so %{buildroot}/%{_libdir}/ | ||
|
||
# chrpath --delete %{buildroot}/%{_libdir}/libclap-scanner.so | ||
chrpath --delete %{buildroot}/%{_bindir}/clap-info | ||
|
||
%files | ||
%doc README.md | ||
%license LICENSE.md | ||
%{_bindir}/* | ||
%{_libdir}/* | ||
|
||
%changelog | ||
* Mon Jan 22 2024 Yann Collette <ycollette dot nospam at free.fr> 1.0.0-1 | ||
- initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# ./clap-source.sh <project> <tag> | ||
# ./clap-source.sh clap-plugins 1.0.1 | ||
|
||
git clone https://github.com/free-audio/$1 | ||
cd $1 | ||
git checkout $2 | ||
git submodule update --init --recursive --progress | ||
find . -name .git -exec rm -rf {} \; | ||
cd .. | ||
tar cvfz $1.tar.gz $1/* | ||
rm -rf $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters