Initial packaging

parent d5f97660
resvg (0.5.0-1) unstable; urgency=medium
* Initial upload (Closes: #918910).
-- Andrej Shadura <andrewsh@debian.org> Mon, 11 Feb 2019 14:13:43 +0100
This diff is collapsed.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: resvg
Upstream-Contact: Evgeniy Reizner <razrfalcon@gmail.com>
Source: https://github.com/RazrFalcon/resvg
Files: *
Copyright: 2017—2019 Evgeniy Reizner <razrfalcon@gmail.com>
License: MPL-2.0
Files: tools/explorer-thumbnailer/*
Copyright:
2012 Dotz Softwares
2019 Evgeniy Reizner <razrfalcon@gmail.com>
License: LGPL-3
SVG thumbnails generator for the Windows Explorer is based on
SVG Viewer Extension for Windows Explorer. This project is licensed
under the LGPL-3.0, just as an original project.
.
On Debian systems, the full text of GNU Lesser General Public version 3
can be found in /usr/share/common-licenses/LGPL-3.
Files: debian/*
Copyright: 2019 Andrej Shadura <andrewsh@debian.org>
License: MPL-2.0
License: MPL-2.0
Debian systems provide the MPL 2.0 in /usr/share/common-licenses/MPL-2.0
examples/cairo-capi
examples/resvg-vs-qtsvg
/usr/include
/usr/lib/*/*.so
docs/usvg_spec.adoc
README.md
=head1 NAME
rendersvg - an SVG rendering application
=head1 SYNOPSIS
B<rendersvg> [I<OPTIONS>] I<in.svg> I<out.png>
B<rendersvg> I<in.svg> I<out.png>
B<rendersvg> B<-z> I<4> I<in.svg> I<out.png>
B<rendersvg> B<--query-all> I<in.svg>
=head1 OPTIONS
A summary of options is included below.
=over
=item B<--h>, B<--help>
Prints help information
=item B<-V>, B<--version>
Prints version information
=item B<--backend> I<BACKEND>
Sets the rendering backend.
Has no effect if built with only one backend [default: cairo] [possible values: cairo, qt]
=item B<-w> I<LENGTH>, B<--width> I<LENGTH>
Sets the width in pixels
=item B<-h> I<LENGTH>, B<--height> I<LENGTH>
Sets the height in pixels
=item B<-z> I<FACTOR>, B<--zoom> I<FACTOR>
Zooms the image by a factor
=item B<--dpi> I<DPI>
Sets the resolution [default: 96] [possible values: 10..4000]
=item B<--background> I<COLOR>
Sets the background color.
Examples: red, #fff, #fff000
=item B<--font-family> I<FAMILY>
Sets the default font family [default: 'Times New Roman']
=item B<--font-size> I<SIZE>
Sets the default font size [default: 12] [possible values: 1..192]
=item B<--languages> I<LANG>
Sets a comma-separated list of languages that will be used during the 'systemLanguage' attribute resolving.
Examples: 'en-US', 'en-US, ru-RU', 'en, ru' [default: 'en']
=item B<--query-all>
Queries all valid SVG ids with bounding boxes
=item B<--export-id> I<ID>
Renders an object only with a specified ID
=item B<--perf>
Prints performance stats
=item B<--pretend>
Does all the steps except rendering
=item B<--quiet>
Disables warnings
=item B<--dump-svg>=I<PATH>
Saves the preprocessed SVG to the selected file
=back
=head1 ARGS
=over
=item I<in.svg>
Input file
=item I<out.png>
Output file
=back
=head1 SEE ALSO
L<usvg(1)>
=head1 AUTHOR
This manual page was written by Andrej Shadura L<< <andrewsh@debian.org> >> for the Debian project (but may be used by others).
/usr/bin/rendersvg
debian/rendersvg.1
#!/usr/bin/make -f
DPKG_EXPORT_BUILDFLAGS=1
include /usr/share/dpkg/default.mk
include /usr/share/rustc/architecture.mk
root-crate=$(DEB_SOURCE)
version=$(DEB_VERSION_UPSTREAM)
CARGO := /usr/share/cargo/bin/cargo
export CARGO_HOME := $(CURDIR)/debian/cargo_home
export DEB_HOST_RUST_TYPE
export DEB_HOST_GNU_TYPE
SONAME=libresvg.so.0
dev-packages = $(filter librust-%-dev,$(shell dh_listpackages))
feature-packages = $(foreach package,$(dev-packages),$(if $(findstring +,$(package)),$(package),))
lib-packages = $(foreach package,$(dev-packages),$(if $(findstring +,$(package)),,$(package)))
crates = $(patsubst librust-%-dev,%,$(lib-packages))
pods = $(wildcard debian/*.pod)
manpages = $(pods:.pod=.1)
install-%: source=$(CURDIR)/$(filter-out $(root-crate),$(crate))
install-%: sources=$(foreach file,$(patsubst $(source)/%,%,$(wildcard $(source)/*)),$(if $(filter $(file),debian target $(filter-out $(root-crate),$(crates))),,$(file)))
install-%: pkgdir=$(CURDIR)/debian/librust-$*-dev
install-%: target=$(pkgdir)/usr/share/cargo/registry/$(crate)-$(version)
install-%: crate=$*
install-%:
mkdir -p $(target)
cd $(source); \
: installing $(crate); \
cp --parents -at $(target) $(sources); \
cp $(CURDIR)/debian/rust-$(crate)-$(version).metadata/cargo-checksum.json $(target)/.cargo-checksum.json; \
touch -d@$(SOURCE_DATE_EPOCH) $(target)/Cargo.toml;
for pkg in $(filter librust-$*+%,$(feature-packages)); \
do \
mkdir -p $(CURDIR)/debian/$$pkg/usr/share/doc; \
ln -s librust-$*-dev $(CURDIR)/debian/$$pkg/usr/share/doc/$$pkg; \
done
override_dh_auto_install: $(crates:%=install-%)
install -D -t debian/tmp/usr/bin \
target/*/release/rendersvg target/*/release/usvg
install -D -m644 -t debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH) \
target/*/release/libresvg.so.*
install -D -m644 -t debian/tmp/usr/include \
capi/include/*.h
ln -sf $(SONAME) debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libresvg.so
%:
dh $@
override_dh_auto_clean:
-$(CARGO) clean
-rm -rf debian/cargo_registry $(CARGO_HOME) debian/*.1
override_dh_auto_configure:
-[ ! -d debian/cargo_registry ] && \
mkdir -p $(CARGO_HOME) debian/cargo_registry && \
for d in /usr/share/cargo/registry/*; \
do \
ln -s $$d debian/cargo_registry/; \
done
rm -f Cargo.lock
DEB_CARGO_CRATE=resvg $(CARGO) prepare-debian debian/cargo_registry
%.1: %.pod
touch -d@$(SOURCE_DATE_EPOCH) $<
pod2man -r "resvg $(version)" -c "Resvg Documentation" $< > $@
override_dh_auto_build: $(manpages)
$(CARGO) build --release --all-features --all
mv target/$(DEB_HOST_RUST_TYPE)/release/libresvg.so target/$(DEB_HOST_RUST_TYPE)/release/$(SONAME)
override_dh_strip:
dh_strip
patchelf --set-soname $(SONAME) debian/libresvg*/usr/lib/*/$(SONAME)
override_dh_installchangelogs:
dh_installchangelogs CHANGELOG.md
{"package":"87c5f977d6e71735d4dbab0f9b01e0c2e29b9ec718e25745768c1e08ef14a9b6","files":{}}
{"package":"c2c01e3bfeaa291a5eda5022420d181d96ff9841df6c1532d919504acf88de4b","files":{}}
{"package":"cba4221bf646cf83b8492d5f0eedb632d5a701fa26bc0dfaa345ad16f7f4e47a","files":{}}
docs/usvg_spec.adoc
README.md
=head1 NAME
usvg - an SVG simplification tool
=head1 SYNOPSIS
B<usvg> [I<OPTIONS>] I<in.svg> I<out.svg>
B<usvg> [I<OPTIONS>] B<-c> I<in.svg>
B<usvg> [I<OPTIONS>] B<-c> I<->
=head1 OPTIONS
A summary of options is included below.
=over
=item B<--h>, B<--help>
Prints help information
=item B<-V>, B<--version>
Prints version information
=item B<-c>
Prints the output SVG to the stdout
=item B<--keep-named-groups>
Disables removing of groups with non-empty ID
=item B<--dpi> I<DPI>
Sets the resolution [default: 96] [possible values: 10..4000]
=item B<--font-family> I<FAMILY>
Sets the default font family [default: 'Times New Roman']
=item B<--font-size> I<SIZE>
Sets the default font size [default: 12] [possible values: 1..192]
=item B<--languages> I<LANG>
Sets a comma-separated list of languages that will be used during the 'systemLanguage' attribute resolving.
Examples: 'en-US', 'en-US, ru-RU', 'en, ru' [default: 'en']
=item B<--indent> I<INDENT>
Sets the XML nodes indent [values: none, 0, 1, 2, 3, 4, tabs] [default: 4]
=item B<--attrs-indent> I<INDENT>
Sets the XML attributes indent [values: none, 0, 1, 2, 3, 4, tabs] [default: none]
=back
=head1 ARGS
=over
=item I<in.svg>
Input file
=item I<out.svg>
Output file
=back
=head1 SEE ALSO
L<rendersvg(1)>
=head1 AUTHOR
This manual page was written by Andrej Shadura L<< <andrewsh@debian.org> >> for the Debian project (but may be used by others).
version=4
opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/resvg-$1\.tar\.gz/,uversionmangle=s/-?rc/~rc/ \
https://github.com/RazrFalcon/resvg/tags .*/archive/v(\d[^\s\-]*)\.tar\.gz
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment