Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu package #454

Merged
merged 7 commits into from
Feb 10, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 0 additions & 57 deletions contrib/release.sh

This file was deleted.

85 changes: 85 additions & 0 deletions contrib/ubuntu-debian/create_package.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#!/bin/bash
source gpg_id
echo "using gpg id: $GPG_ID"
#echo "Press any key..."
#read
cd ../..

if [ $# -ne 0 ]
then
RELEASE=$1
else
RELEASE=$(date +"%y%m%d")
RELEASE="0.0.19."${RELEASE:0:6}
fi
echo Building release: $RELEASE

if [ -d release ]
then
echo Directory release exists, removing ...
rm -rf release
fi

echo exporting git tree...

git clone ./ release/qucs-$RELEASE
cd release/qucs-$RELEASE
git submodule init
git submodule update


rm -rf .git
#move qucs-doc out and build the pdf's for the qucs-doc debian package
mv qucs-doc ../build_qucs-doc
cd ../build_qucs-doc
./bootstrap
./configure --prefix=$(pwd)/../qucs-doc-$RELEASE
make
make install
cd ..
#extract the 3 folders with pdf files
mv qucs-doc-$RELEASE/share/qucs/docs/* qucs-doc-$RELEASE
rmdir qucs-doc-$RELEASE/share/qucs/docs
rmdir qucs-doc-$RELEASE/share/qucs
rmdir qucs-doc-$RELEASE/share
#copy the debian packaging folder for the debian package
mv qucs-$RELEASE/contrib/ubuntu-debian/qucs-doc/* qucs-doc-$RELEASE/
cd qucs-doc-$RELEASE
./autogen.sh
cd ..

#create the tar archive
tar -zcvhf qucs-doc_$RELEASE.orig.tar.gz qucs-doc-$RELEASE
rm -r qucs-doc-$RELEASE
#extract it again to remove symbolic links
tar -zxvf qucs-doc_$RELEASE.orig.tar.gz

#copy debian packaging files from contrib into qucs-$RELEASE
mv qucs-$RELEASE/contrib/ubuntu-debian/qucs/debian qucs-$RELEASE
rm -r qucs-$RELEASE/contrib

#Create signed source packages ready to upload to the PPA
DISTS="trusty vivid wily xenial"
tar -zcvhf qucs_$RELEASE.orig.tar.gz qucs-$RELEASE
rm -rf qucs-$RELEASE
tar -zxvf qucs_$RELEASE.orig.tar.gz #make the symbolic links actual files


cd qucs-$RELEASE
COUNT=-0 #last version number in repository
for DIST in ${DISTS} ; do
COUNT=$(($COUNT-1))
dch -D $DIST -m -v $RELEASE$COUNT -b snapshot
debuild -S -k$GPG_ID
done
cd ..

cd qucs-doc-$RELEASE
COUNT=-0 #last version number in repository
for DIST in ${DISTS} ; do
COUNT=$(($COUNT-1))
dch -D $DIST -m -v $RELEASE$COUNT -b snapshot
debuild -S -k$GPG_ID
./configure
done

File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ install-data-local:
for docfile in $$DOC_SUBDIR/*.pdf ; do \
if test -f $$docfile; then \
$(INSTALL_DATA) $$docfile $(DESTDIR)$(datadir)/qucs/docs/$$docfile; \
fi \
fi \
done \
done

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions contrib/ubuntu-debian/qucs-doc/configure.ac
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
dnl Process this file with autoconf to produce a configure script.

AC_INIT(qucs_doc, 0.0.19)

AC_CONFIG_AUX_DIR(.)

AM_INIT_AUTOMAKE([1.14])


AM_SILENT_RULES([no])

AC_OUTPUT([
Makefile
])
File renamed without changes.
5 changes: 5 additions & 0 deletions contrib/ubuntu-debian/qucs-doc/debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
qucs-doc (0.0.19) trusty; urgency=medium

* Created separate package for qucs-doc

-- Frans Schreuder <fransschreuder@gmail.com> Sat, 06 Feb 2016 15:43:24 +0100
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Section: electronics
Priority: optional
Maintainer: José L. Redrejo Rodríguez <jredrejo@debian.org>
Homepage: http://qucs.sourceforge.net
Build-Depends: debhelper (>> 4.0.0),autotools-dev, build-essential, cmake, texlive-latex-base, texlive-latex-extra, texlive-latex,texlive-math-extra, texlive-extra-utils, texlive-font-utils, texlive-fonts-recommended
Build-Depends: debhelper (>> 4.0.0),autotools-dev, build-essential
Standards-Version: 3.8.1

Package: qucs-doc
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Standards-Version: 3.8.1
Package: qucs
Architecture: any
Depends: ${shlibs:Depends}, perl, libqtcore4, libqt4-qt3support
Recommends: freehdl, verilog, octave, adms, asco
Recommends: freehdl, verilog, octave, adms, asco, qucs-doc
Description: Quite Universal Circuit Simulator
Qucs is an integrated circuit simulator which means you are able
to setup a circuit with a graphical user interface (GUI) and simulate
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions qucs-core/debian/changelog

This file was deleted.

19 changes: 0 additions & 19 deletions qucs-core/debian/control

This file was deleted.

4 changes: 0 additions & 4 deletions qucs-core/debian/dirs

This file was deleted.

2 changes: 0 additions & 2 deletions qucs-core/debian/qucs-core.substvars

This file was deleted.

84 changes: 0 additions & 84 deletions qucs-core/debian/rules

This file was deleted.

34 changes: 0 additions & 34 deletions qucs-doc/debian/README.debian

This file was deleted.

5 changes: 0 additions & 5 deletions qucs-doc/debian/changelog

This file was deleted.

2 changes: 0 additions & 2 deletions qucs-doc/debian/compat

This file was deleted.

33 changes: 0 additions & 33 deletions qucs-doc/debian/copyright

This file was deleted.

Loading